Prefab in the wrong rotation

So I am making a tile game. end less runner ish. when the tiles spawn (Prefabs) They turn sideways. I even made the prefab sideways in multiple directions but it doesn’t seem to work: Here is my code of the spawning prefabs as well as how they look like in the actual scene:


How can I fix this issue?

Easiest is always to recreate the prefab with an extra GameObject at its root (top level) to let you align it the way you want.

This often happens with Blender, as when they are imported they have their right-handed coordinates system remapped to left-handed, and come up with a (-90,0,0) rotation. Your instantiate sets the orientation to identity, so they are 90-degrees off.

1 Like

This isnt a blender file. is this also the case with regular unity files?

If the model does not show identity rotation (0,0,0) upon import, you’ll have this problem.

Does the model file show identity rotation in the importer?


In scene Placement.
this is as saved prefab

which one do you mean?