I have an in-game chat in my game. When you press T it shows the text field. Two main problems, ONE because of cursor lock, the game must be paused to type. TWO you cant send by pressing enter if the textfield is in focus… how can I work around this?
For the “press enter to send” part of your question, refer to this discussion: http://forum.unity3d.com/threads/69361-GUI.TextField-submission-via-quot-return-quot-key…
Basically, you need to check the keypresses and look for the return key.
For the “pause to type” part - the game will not pause while using the text field. Can’t tell from the question if you want it to pause or not.
for the second part of your question, just draw cursor when textfield is opened =)
OK, my problem is fixed. I looked into Dave’s link and fixed that issue, and somehow the other one is fixed too. Thanks!