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.
Dec 21 '09 at 08:00 PM
Jun 24 '10 at 12:10 PM
You could generally make the UI lose keyboard control focus:
GUIUtility.keyboardControl = 0;
Dec 21 '09 at 08:01 PM
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
Once you sign in you will be able to subscribe for any updates here
Answers and Comments
The best place to ask and answer questions about development with Unity. Check out our FAQ for more information.
To help users post good questions and use the site effectively we have posted a tutorial video. Please check it out.
asked: Dec 21 '09 at 08:00 PM
Seen: 1450 times
Last Updated: Jun 24 '10 at 12:10 PM
Displaying a progress bar on the OnInspectorGUI function
Can I detect whether an item in a list located in an inspector panel has been selected?
Unexpected selection state in custom inspector?
Problems with Builds
Intercept ValidateCommand and ExecuteCommand Events
UI vs Scripts question - what's where?
Problem using GUI.GetNameOfFocusedControl() with dynamic GUI
GUI Editor tools
Easy way to make buttons in-accessible when under a pop-up window?
Getting Event.current in the editor all the time