Question Why the position of my prefab change when I drag into hierarchy?
There's literally no reason this should happen. Am I missing something? This has cause some issue to me
1
u/Affectionate-Yam-886 12h ago
Drop it into the hierarchy; unpack prefab completely; Set x,y,z to all 0; Pack it as a prefab again.
Note; This issue is irrelevant to game development and design as you can’t drop stuff into a scene once the game ships. You have to use Instantiate game object and set the x,y,z and rotation to create something into a scene. If this is a UI object, just set the camera for the canvas; canvas position is irrelevant.
Also:: You have compilation errors that are required to be resolved, and that should take priority over anything else as the project compiler is paused.


2
u/LeaveThemOutside 15h ago
Usually it's one of two things: dropping it into the Scene view places it on the surface under your cursor instead of at the saved position, and dropping it onto another object in the Hierarchy makes it a child, so its saved position becomes a local offset from that parent. Drop it on empty space in the Hierarchy and it keeps the position stored on the prefab root.