Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity GUI TextField enter

// call before GUI.TextField! or TextField will consume the enterkey!
bool enterPressed = Event.current.Equals(Event.KeyboardEvent("return"));
 
PREVIOUS NEXT
Tagged: #unity #GUI #TextField #enter
ADD COMMENT
Topic
Name
1+9 =