Method OnGUI OnGUI(string) Invoked by the Settings editor. Declaration public void OnGUI(string searchContext) Parameters Type Name Description string searchContext A string containing the contents of the search bar.