- Home /
Question by
kevinrocks_786 · Mar 12, 2016 at 02:32 AM ·
c#emptyprimitivesempty game objectcreateprimitive
How to CreatePrimitve Empty
Hello. I was wondering how I would go about making a CreatePrimitive method that returns an Empty Gameobject. No renderer, collider or anything. Just like creating an empty. Any help? Thanks!
Comment
Best Answer
Answer by Bunny83 · Mar 12, 2016 at 02:46 AM
Uhm, just do this:
GameObject go = new GameObject("emptyGO");
This creates a new gameobject with the name "emptyGO" at root level.
Your answer

Follow this Question
Related Questions
Instantiate cube in subclass 2 Answers
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Initialising List array for use in a custom Editor 1 Answer
Illuminating a 3D object's edges OnMouseOver (script in c#)? 1 Answer