Hello,
I am trying to instantiate a prefab object in front of the player, so they can build a wall.
When they place the wall, it needs to be central to the camera (placed via its center).
Unfortunately, the wall’s pivot point is used to instantiate it. This means it is placed to far down and too far to the left.
I need to instantiate an object by its center, I can think of two ways to do this:
a) Place the object by its center somehow? Maybe there is some kind of option with the instantiate() function?
b) Change the pivot point to be the center of the object, I have no idea how to do this.
Just in case, I have tried changing the “pivot” button in the top left to center - it doesn’t work and I can’t see how it would help changing it :S
Thanks in advance,
~Joe
PS: Sorry for the stupid tag. Unity Answers is being stupidly buggy, suggested tags or not loading, the tag page isn’t loading and “object” was the only tag I could find that existed - if tags are working for you please edit this!