Quote from: Rock5 on December 06, 2017, 11:48:14 AM
One problem I had is not being able to find the text controls name. I don't know unity but the part that seems to make the search bar controls is
Code SelectsearchTerm = Widgets.TextField(searchBarRect, searchTerm);
I'm not sure I understand it but searchTerm is a string, not some control.
The "Widgets.TextField(...)" part is what creates the text box GUI in that line; that method uses GUI.TextField (https://docs.unity3d.com/ScriptReference/GUI.TextField.html) to do so. Yes, searchTerm is just a string that gets the text box's value.
Try changing your code to:
Code Select
GUI.SetNextControlName("TaggingSearchTerm");
searchTerm = Widgets.TextField(searchBarRect, searchTerm);
GUI.FocusControl("TaggingSearchTerm");
And see if the text box gets focus.