Hello,
I have a "MonoBehaviour" with a "List<EventDelegate>" called "onUse" - In my custom editor, I just want to get a 'valid' reference to "onUse" via serialized properties, and then cast the property back to a List<EventDelegate> so that I could draw it - But I'm failing though.
I'm getting the property successfully:
sp_onUse = serializedObject.FindProperty("onUse");
But I don't know what to do here:
NGUIEditorTools.DrawEvents("On Use", use, ???);
On the side: I see in your editor scripts, sometimes you use SerializedProperties and other times you manually register for undo and use target instead. I can see two reasons why you would use target: 1- you wrote the editors before SerailizedProperties came about 2- (same reason I don't use SPs) SPs are very annoying, unpredictable and really tough to work with, debug, etc.
What approach you suggest I go forward with? stick with target and manually register undo, multiple edit, etc? or Wrestle with SPs?
Thanks a lot in advance.