↧
Answer by frarees
If you want to access class members (i.e. fields, properties, methods...) you shall use __reflection__ (System.Reflection namespace). Check [MSDN docs][1]. Here's a simple example that would get all...
View ArticleAnswer by fffMalzbier
Sadly the documentation is not very helpful but here is how it works. First you have to include the event namespace using UnityEngine.Events; Then you can define your event: public UnityEvent myevent;...
View ArticleAnswer by Rosa-Gao
Both @fffMalzbier and @frarees solution work out very well! UnityEvent way is much easier, But FieldInfo is more customizable when making Editor script. Very thanks both of you, I never know this...
View Article