- Home /
how to hit enter through script
hi everyone i have a simple problem that i can find an answer to, i made my first component and i cant seem to get the focus out of a string box without manually pressing enter
so what im asking is how do i get focus out of string when i click on something else.
You can set the focus in GUI. http://unity3d.com/support/documentation/ScriptReference/GUI.FocusControl.html>Heres the scripting ref. Not sure if that helps or not.
Answer by Eric5h5 · May 22, 2012 at 12:00 AM
Try using FocusControl in combination with SetNextControlName.
ok ill have a quick read up on them and give it a try
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
I made a better shader how do i fix[add _Shadow Strength]help???>Sorry that im asking for to much 1 Answer
can i use a string variable like this 1 Answer
Probelm with Enter/Exit script 1 Answer
Help In Making a SphereCast for 3D Tire! Working RayCast Script included! 0 Answers