Quantcast
Channel: Answers for "[RESOLVED]How to get all available parameters from target Component"
Browsing latest articles
Browse All 6 View Live

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 Article


Answer 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 Article


Answer 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
Browsing latest articles
Browse All 6 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>