[Unity 3d] Inspector Searchable Enum (searchable enumeration) - GitHub

Project on GitHub as the stars, some good warehouse, provided that inadvertently missed it is hard to get back, so pick a little, hoping to help caring people.
This collection point to a small functional units reads, but also easy to stop the pickup!

Summary:

Today I recommend a warehouse called the Searchable the Enum , searchable enumeration.
If the general enumeration enumeration over many things, very unfriendly to show up in the Inspector, may be dragging fresh look to find the value we want.
What, did not encounter such a situation? - Think KeyCode enumerate it.
So, this component is the perfect solution to this pain point, you want to find the item you want from the vast enumeration need only tap a keyboard under two can be.

Features:

Quickly locate the specified enumeration value.

Combat:

Actual use is very simple, only need to add the above enumeration field [SearchableEnum]attributes can be!

public class SearchableEnumDemo : ScriptableObject
{
    [SearchableEnum]
    public KeyCode AwesomeKeyCode;
}

Demo:

Compared to traditional enumeration drawing effect, whatever the outcome, whether or not the user experience is not be clearer?


3600713-253ab6176b1b421c.gif
Reprint, delete legislation invasion

link

UnityEditorJunkie - SearchableEnum

Conclusion:

Also with ScriptaleObject yo, the taste is still really fragrant ~

This anthology ing continuously updated

Guess you like

Origin blog.csdn.net/weixin_33674437/article/details/90935439