- Home /
Question by
Joachim Ante · Dec 21, 2009 at 08:00 PM ·
guieditorfocus
How do I change the value of an editor text field while it is selected from code
I want to change an editor text field from a script, while it is currently focused and edited. Essentially I want to make sure that the text field no longer has focus.
Comment
Answer by Joachim Ante · Dec 21, 2009 at 08:01 PM
You could generally make the UI lose keyboard control focus:
GUIUtility.keyboardControl = 0;