Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

[Feature Request]The SearchContextAttribute in custom editor.

Discussion in 'Editor & General Support' started by watsonsong, Mar 22, 2022.

  1. watsonsong

    watsonsong

    Joined:
    May 13, 2015
    Posts:
    555
    Very glad to see the the-latest-in-search-unity-20212 new search. The SearchContextAttribute is really useful.

    But I want to create the SearchContextAttribute dynamically base on the target attribute but not just a const query string. For example I may want to filter only the folder this ScriptableObject locate at, or filter to select current sub-hierarchy.

    It may useful to extend the UIElements.ObjectField and the EditorGUI.ObjectFiled. To support specify a default search context.
     
  2. jonathans42

    jonathans42

    Unity Technologies

    Joined:
    Jan 25, 2018
    Posts:
    514
  3. Tim0212

    Tim0212

    Joined:
    Jul 22, 2022
    Posts:
    1