Quantcast
Viewing all articles
Browse latest Browse all 90

Find a script by name and add it to gameObject?

to make it simpler, i want users to be able to use one script, and that script loads a mouseOrbit onto the camera when a button is pressed, and unloads it when it's pressed again. can i do "if button down, camera.main.AddComponent ("mouseOrbit");" thankyou

Viewing all articles
Browse latest Browse all 90

Trending Articles



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