# Set the correct orientation when exporting from Blender to Unity

When exporting models from Blender into Unity one must take into account the handedness of both programs.

Blender considers Z vector as the UP vector, but Unity considers the Y vector as the UP.

Now, if you want a model who is facing up in Blender (along Z) to be facing up in Unity (along Y) when imported, people recommend this simple fix:

• model your 3D model in Blender along the Y axis and apply the necessary rotation onto the model.

Now when working in Blender if you want to use Z as the UP vector, you simply transform your model by a positive 90 degree rotation around X (but don't apply the rotation).

I export my model using Blenders built-in FBX exporter with the default settings (UP = Y axis and FORWARD = -Z axis).

When imported into Unity, my model is facing upwards as expected along the Y axis.

But, what I don't understand is why my model is also rotated 180 degrees around the Y axis?

In the first image from Blender you can see that my cup handle pointed along the x axis aka right, but now is facing left (-X direction).

• My team recently stopped exporting FBX from Blender to Unity because of scaling issues with nested objects. Instead we use .blend files in Unity. You'll notice that when you use .blend instead of FBX, the Scale Factor will be 1 as expected. A big part of the decision was because Blender cannot keep up with changes in the FBX format. Blender rolls their own binary interpreter since they cannot incorporate the closed-source FBX SDK into their distribution. The !EXPERIMENTAL! Apply Transform function worked for orientation in some simple cases but development on that has ceased AFAIK. – sbsmith Mar 30 '17 at 20:36
• If you go the .blend route and want to get the nice "export selected" functionality for .blend, see this question blender.stackexchange.com/questions/71031/… – sbsmith Mar 30 '17 at 20:38
• Oh, and we fix the rotation by using a custom import tool for our .blend files. It creates prefabs where the meshes are nested and re-oriented inside empty GameObjects. – sbsmith Mar 30 '17 at 20:40

I had the exact same problem before, and i fixed it by doing the following:

1. Choose to export with FBX
2. Check "!EXPERIMENTAL! Apply Transform"
3. Import to Unity
4. See that the model is on the correct rotation.

Just export to FBX using the defeault settings of -Z Forward and Y up.

• I don't have Unity, so I can't test this, but in the screenshot from Unity in the question it looks like it uses Z forward and Y up. – user27640 Sep 17 '16 at 16:02
• The question has been edited beyond recognition now so the point is moot. – Xtremity Sep 17 '16 at 20:04

What worked for me to import into Unity is this setting:

Orientation in Blender:

Orientation in Unity: (The right direction)

You can also put -90 on the x axis (in blender-render), then press CTRL+A and then put 90 on the x axis (all of this inside blender) and then just export it.

You can use this plugin : Blender to Unity Orientation Fix Plugin

It will automatically fix the orientation of your .blend files in your Unity project. Just download and install the .unitypackage in your project, and re-import .blend files (In Unity Project tab, right click -> Reimport)