Expose Behaviour types (both singular and array) and properties
techanon
I want to be able to store references to components as a Behaviour type within an array, so I can loop through them and toggle the 'enabled' property on them as needed by the script.
Because Behaviour is the most generic type for many Unity types that has the 'enabled' property, it should be exposed so we don't have to explicitly cast check for other subtypes derived from Behaviour, which would cost extra EXTERN calls.
Specifically what I'd like exposed is:
Behaviour Type
Behaviour[] Type
Behaviour.enabled property (get/set)
Behaviour.isActiveAndEnabled property (get)
Other related post that specifically referred to isActiveAndEnabled
Log In
techanon
Hmm. Found another related. https://feedback.vrchat.com/vrchat-udon-closed-alpha-feedback/p/allow-enabling-and-disabling-of-arbitrary-components
Searching on canny is hard...