Quantcast
Channel: Answers for "Dynamic AddComponent?"
Viewing all articles
Browse latest Browse all 6

Answer by Dave-Carlile

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