Categories
How to hang up a script to the created object?
I create here so empty object And I want to hang up a script on this empty object. How can I do that? I can't find it on the internet GameObject Empty = new GameObject();
GameObject Empty = new GameObject();
Answer the question
In order to leave comments, you need to log in
SphereCollider sc = gameObject.AddComponent<SphereCollider>() as SphereCollider;
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question