Replies: 1 comment
-
|
Hi! Tri-Inspector has a reusable element that displays a drop-down list: At the moment it is already in use in:
It displays a regular dropdown only, but I think it can be extended to display a searchable list too. Then it would be possible to add optional public class DropdownAttribute : Attribute {
public bool Searchable { get; set; }
}
[Dropdown(... , Searchable = true)]
public string s;
[AssetDropdown(..., Searchable = true)]
public string s;and so on As for implementation of a dropdown with search, Tri-Inspector has an implementation that can be used as a reference |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I’d like to propose the idea of adding searchable dropdowns to TriInspector.
I’m not sure what the best approach would be for TriInspector:
In this case, existing attributes like [Dropdown] could opt-in to the feature, and new attributes (including the ones in my PR #206) could reuse the same utility. It could even support an optional parameter such as:
[Dropdown(searchable: false)].
This feature would be especially useful for existing attributes like [Dropdown], and also for the two new attributes I introduced in my open PR #206 — [AnimatorParameter] and [MaterialProperty] — both of which often deal with long, hard-to-navigate lists. A searchable option would make them far more convenient and user-friendly.
Here are examples from other tools that inspired this suggestion:
Unity-Editor-Toolbox [SearchableEnum] attribute

MyBox [SearchableEnum] attribute

Beta Was this translation helpful? Give feedback.
All reactions