- Home /
Enter values into Textarea without clicking/TAB
Hi :) I am creating an "editor" for creating some rooms....And i want to create an UI like in sketchup .. for example you want to create a wall, you click somewhere on a plane and a textarea appears when you can enter some values for example the size of the wall ... Is there a possibility to enter values to textarea without clicking on it or pressing tab ? Thanks :)
Answer by ownerfate · Oct 12, 2014 at 08:15 PM
try adding this somewhere within your " OnGUI() " function.
GUI.SetNextControlName ("password");
GUI.FocusControl ("password");
just replace the " password ", with your text.
i was looking for a way to skip that clicking the tab button to enter data also.
thanks to this post here: http://forum.unity3d.com/threads/gui-textfield-submission-via-return-key.69361/
i hope this helped somehow.
Your answer
Follow this Question
Related Questions
Enter / Exit Trigger 2 Answers
JS Enter Exit with NetworkPlayer 1 Answer
Audio Trigger Enter Exit 1 Answer
Increasing the size of terrain without destroying it. 1 Answer