|
This code appears to no longer work: unity3d.com - GUI.GetNameOfFocusedControl documentation (uses Return key to confirm a text field as alternative to a button) It seems now that TextField eats all keys (even releasing of Shift and Ctrl, messing up their states). Any ideas for workarounds? This is making my game unusable every time I show a TextField. Is there some new input method support or something that I can turn off to maybe avoid whatever added this bug?
(comments are locked)
|
|
I found Input.eatKeyPressOnTextFieldFocus: Since TextField doesn't even correctly restore state of CTRL, you basically have to do this if you use Shift or Ctrl state in your game. How do you use it in a script??? In a Awake function, i wrote " Input.eatKeyPressOnTextFieldFocus = false; ", but i get an error: BCE0019: 'eatKeyPressOnTextFieldFocus' is not a member of 'UnityEngine.Input'.
Aug 03 '11 at 01:52 PM
Tuor
Yes, just set it once in one object's
Aug 03 '11 at 01:59 PM
Waz
No... 3.3
Aug 03 '11 at 02:19 PM
Tuor
I just tried in 3.4, and it works fine now.
Aug 03 '11 at 02:22 PM
Tuor
(comments are locked)
|
