Initializing Prefab Position

Folks,

I think I am struggling with what’s supposed to be a simple problem.

Let’s say I have a scene with a plane (used as ground) and a cube prefab. When I drag the prefab onto the scene, I see about 1/3 of the cube is hidden from the view because the bottom of the cube is sitting below the plane level.

So, I simply moved the cube up along the Y-axis until I am satisfied with the position, and dragged the cube GameObject (with updated Y-position value) from the Hierarchy window into the initial cube prefab in the Project window. To my knowledge, that should update the Y-position value of the prefab so that all subsequent initialization of the prefab would yield the desired positioning of the cube GameObject. But, it doesn’t seem to be the case. The Inspector window shows the updated Y-position value but when I drag the prefab back onto the scene, the positioning of the object is same as before.

Can someone please tell me what I’m missing here? Thanks!

Have you tried to drag the GameObject to Hierarchy list instead of scene view?

Edit: looks like this is the only property that’s not applied in prefab instances:
“Note that the root’s position and rotation will not be applied, as that affects the instances absolute position and would put all instances in the same place.”
(Unity - Manual: Prefabs)

I found the solution to my own problem and I just want to add it here for other users who might find themselves in a similar situation:

First off, thanks to astorga for taking time to kindly answer my newbie queries. It’s been very helpful.

When you create a prefab out of an object, (I think) it normally creates a hierarchy - the actual prefab is the parent and under it there would be things like lighting, camera, and the actual object itself. The trick is to modify the values (whether it be position, rotation, or scale) for the object mesh rather than the values for the prefab.

Knowing what I know now, the Unity Doc makes clear sense but I wasn’t sure how to apply that knowledge to actually dealing with the specific problem. I’d think that’s probably because I am a beginner with Unity. So, this is for all the beginners out there!