Quantcast
Channel: Answers by "Graham-Dunnett"
Viewing all articles
Browse latest Browse all 959

Answer by Graham Dunnett

$
0
0
Create a [window][1], iterate over your enum and add buttons to the window. When the user presses a button, look to see if a GO is selected, and [add][2] the script. I think the docs just about cover it. If you are struggling, just post the code you've written and ask for help. [1]: http://docs.unity3d.com/ScriptReference/EditorWindow.html [2]: http://docs.unity3d.com/ScriptReference/GameObject.AddComponent.html

Viewing all articles
Browse latest Browse all 959

Trending Articles



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