Search Unity

Editor GUI Searchbar

Discussion in 'Editor & General Support' started by Nanobratik, Jan 1, 2021.

  1. Nanobratik

    Nanobratik

    Joined:
    Mar 19, 2019
    Posts:
    1
    Hi all,
    currebtly I am trying to build a couple of custom tools for the editor, including some where I have a list of item I want to display in an editor window. All that works well but when trying to add a search bar like in the hierachy or projects windows I couldn't figure how to add that search bar.
    Currently I am using a "normal" textfield like this:
    query = GUILayout.TextField(query);
    Is there a way to use the default unity searchbar?

    Thanks