Quantcast
Viewing all articles
Browse latest Browse all 6

Answer by Dave Carlile

One of the [AddComponent][1] overloads takes a class name instead of a type. So just call it with the name of the class from your list. [1]: http://docs.unity3d.com/ScriptReference/GameObject.AddComponent.html

Viewing all articles
Browse latest Browse all 6

Trending Articles



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