Quantcast
Browsing all 4 articles
Browse latest 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


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 all 4 articles
Browse latest View live


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