- changed status to resolved
Odin not rendering custom UnityEvent classes
Issue #80
resolved
Odin is not rendering our custom UnityEvents, a trick used to render generic UnityEvents before Odin.
This wouldn't render (in default Unity Inspector)
public class Behaviour : MonoBehaviour { public UnityEvent<string> MyEvent = new UnityEvent<string>(); }
But this renders (in default Unity Inspector, doesn`t render with Odin)
public class Behaviour : MonoBehaviour { public class StringEvent : UnityEvent<string> {} public StringEvent MyEvent = new StringEvent(); }
Comments (1)
-
- Log in to comment
We've replicated this bug, and a fix will make it into the next patch after 1.0.1.5.
Meanwhile, I'm afraid you will have to mark your member with [ShowInInspector] and [DrawWithUnity], which should cause it to show up, and be drawn with Unity's default event appearance.