SubjectNerd-Unity / ReorderableInspector

Automatic reorderable lists for Unity game engine components
MIT License
483 stars 48 forks source link

UnityEvent single line #17

Open Oneiros90 opened 5 years ago

Oneiros90 commented 5 years ago

Awesome plugin! I just wanted to report that this setting looks weird in the inspector:

[Serializable]
public struct KeyAction
{
    public KeyCode keyCode;
    public UnityEvent action;
}

[Reorderable("Element", true, true)]
public List<KeyAction> Mapping;