Quantcast
Channel: Answers for "Can a script enable components?"
Browsing latest articles
Browse All 4 View Live

Answer by Eric5h5

Just use the .enabled property (if it exists for that component). GetComponent(Blah).enabled = true.

View Article


Answer by DDelapena

just get the component from the gameObject and then set ".enabled" to true or false. on some kind of trigger event it could be like this: var component : nameOfComponent = collision.GetComponent(...

View Article

Browsing latest articles
Browse All 4 View Live


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