Quantcast
Channel: Latest Questions by frogsbo
Viewing all articles
Browse latest Browse all 90

Find a script by name and add it to gameObject?

$
0
0
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

Latest Images

Trending Articles



Latest Images

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