- Home /
Can't Input when focus a text field
i have a chat field. but while i write something i cannot push any button. i need to make "write and push enter to send message". for i send the message , i need to lost the focus at the textfield
edit : i mean i dont get any button when i focused on a textfield
Answer by zijan · Sep 16, 2011 at 05:17 PM
Maybe:
Input.eatKeyPressOnTextFieldFocus = false;
http://unity3d.qatohost.com/questions/149483/textfield-eats-all-keys-as-of-340.html
Answer by Waz · Jun 27, 2011 at 01:48 PM
If you've started with the example Network Chat.JS, it's a bit bad that way but is pretty easy to modify for any particular requirement. Hard to say without code, but basically you need to set the initial focus and then keep it on that field, even when new messages come in.
this is my system , i wrote all in old unity version (before 3.4) my chat system was work. but this version , when i focused the textfield , "enter" is not working. when i break the focus of text field, enter is working.
i mean i dont get any button when i focused on a textfield
Your answer
Follow this Question
Related Questions
TextField, Event.current, Input.GetKey, and GUI.FocusControl locking 1 Answer
Defocus input line? 0 Answers
TextField not getting focus on iOS 1 Answer
Using GUI.FocusControl on TextField selects all text 4 Answers
Textfield number only 1 Answer