- Home /
How do i automatically select a Text.Field?
When i create a Text.Field in the OnGUI i want to select it automatically, at present the player has to press tab to do so... is there something i can state in script after this?
function OnGUI () {
if(debug){
textInput = GUI.TextField (Rect (10, 10, 200, 20), textInput, 25);
}
}
Comment