Tips before exporting the model from Blender to Unity.

There are some steps that need to be taken before you can export your model to unity. You will learn about resolving common issues in your model and how to correctly export your model to Unity.

When exporting your models from blender to unity, many problems can arise. The model can have an incorrect orientation or maybe it is displayed differently after export or your teammates find the model difficult to use because of incorrect pivot position. To solve such issues, there are some steps that need to be taken before you can export your model to unity. You will learn about resolving common issues in your model and how to correctly export your model to Unity.

Before you export your model:

Combine multiple objects to one if applicable. Select the objects you want to merge and use CTRL+J to merge them into one object.

Clean up your mesh by deleting loose or overlapping vertices. Select your mesh and go to Edit mode, then select all vertices using A, then Mesh > Clean Up.  Here you can find different options to clean up your mesh. Delete Loose will delete any vertex without an edge. Degenerate Dissolve will dissolve zero-length edges and zero area faces. Fill Holes will fill any open boundary edge loops.

image-1633241836269.png
Clean Up option location in blender

Merge by Distance can be used to merge multiple vertices into one that is in close proximity to one another. Make sure the distance value is low when using Merge by Distance as a higher value will merge faraway vertices together.

image-1633242360734.png
Merge by a distance value

Reset the object rotation and scale. Press CTRL+A to bring the option and hit Rotation and Scale. You can also reset the Location if you want the object at the origin.

image-1633242865884.png
Rotation and Scale location

Set pivot position of characters and standing objects at the base. This makes it easier to put the object in-floor properly. Press Shift+C to reset the 3d cursor to the origin and adjust the object's transform along with the origin as shown in the figure below. Use right mouse click to bring the context menu and Set Origin> Origin to 3D Cursor.

image-1633243224808.png
setting pivot position demo

You can use the Backface Culling option to toggle how the object will appear in unity. Use the Face Orientation option to see face normal information. Any faces shaded Red are flipped and will not display in Unity.

image-1633256863193.png
Backface Culling and Face Orientation location

You can use only one of these options at a time. As you can see the faces with wrong normal data is not visible when Backface Culling is turned on. Those faces will be displayed Red when Face Orientation is turned on.

image-1633257450995.png
Backface culling demo

To resolve this issue simple select such faces then, ALT+N > Flip. You can also use the Recalculate Outside or Recalculate Inside while selecting all faces to recalculate the normals and make them all face inwards or outwards.

image-1633243659498.png
Normal Manipulation option menu

Now, finally to export your model to unity, select the objects you want to export then, F4 > E > F and use the options shown below. This will make sure the exported fbx will have the correct orientation, scale and apply any modifiers.

image-1628842055640.png
image-1628842081095.png
fbx export option for mesh in blender

You can also save these settings as presets for quick access to these settings in the future. Simply use the + sign to add new preset. Existing presets can be accessed using the Operator Presets drop-down menu.

image-1633258009044.png
fbx export preset location