Instantiating into spots within hierarchy

Hiya everyone.

So right now im making some instantiated objects that I then place onto a terrain.

Now recently i’ve been switching terrain, and it be nice to just simply put all my objects that ive instantiated under the terrain hierarchy so when I move a terrain to the side, all the buildings move in relation with it.

Any idea how to dictate where an instantiated object will be created in the hierarchy?

You can’t do it as part of the Instantiate command, but you can do it immediately afterwards, by setting the parent of the gameobject’s transform that you just created.

Thanks duck! Got it.