how to create a new game object that defaults at 0,0,0 transform?

Looking at the docs, the preset manager doesn’t work with the component.

I’m not completely sure what you’re asking. If you’re trying to control the position of a GameObject created at runtime, the Instantiate function allows you to specify the position as an argument.

And by default if you new up a GameObject, it will be at (0,0,0)

You can set its position by manipulating its transform.position:

 var go = new GameObject();
 go.transform.position = new Vector3( 1, 2, 3);
// This syntax is good for fast prototyping, but I encourage to avoid
// creating game objects in runtime in production unless absolutely neccessary
var go = new GameObject() {
   name = "Point Zero",
   transform = { position = Vector3.zero }
};
1 Like