How to export from Blender?

I have a scene in blender with multiple objects but only want to export a character mesh, its rig, and animations.

What’s the best way to handle this?

5107433--503882--Capture.PNG

Try blender fbx export, search on this forum for a free blender plug in script to assist with 90 degree rotation when exporting from blender to unity. Also note fbx export scaling options in blender to avoid scaling to x100 when importing. Good luck!

P.s. blender fbx export has ‘export selected’ option to limit what is exported

Select the character mesh, armature and possible empty root objects you might have added etc and export as fbx. If there’s Unity preset, select it. Enable selected objects, and other options that might be needed (empty objects for example). Also remember that Blender resets these settings when you change scene or restart Blender so save a preset when you find good settings.

And remember to apply the transforms to remove unnecessary scaling, offsets etc.

For me, proper export from Blender takes 2 important parts:
1. Export Settings
2. Correctly Applied Rotation (in Blender)

1. Export Settings:
For the export settings: I wrote extensively about my specific export settings here! The good news is, you can save these export setting presets for a long time, and not worry about setting these every time you export.

2. Correctly Applied Rotation: (in Blender)
When I am ready for export, this is how I prepare my 3D models in Blender. These steps allow my Blender characters to have completely zeroed out position and rotation, while maintaining the model’s correct orientation:

2.1. Whenever exporting a rigged character, I always setup my hierarchy in Blender with extra empty parent objects, so that I don’t need to add any extra Transforms in Unity. If you’re just modeling a simple object that is one Mesh, one object – you can skip this step 2.1.. I tend to use something like the following structure, for example, if the character’s name is Mark: (

5120072--505778--Mark Hierarchy in Unity.png

2.2. Over the months (maybe years?), I found these steps to completely remove all cases of weird -90 rotation issues in Unity, depending on what kind of object(s) you’re exporting:

(Once you perform these steps, you can export to FBX with settings similar to those described in Step 1., and it should be all-good in Unity!)

NOTE: The only object I have still never been able to fix is the Armature itself, which always has (-90, 0, 0) rotation in my exports. This is because if you try to apply rotation to the Armature in Blender, it WILL mess up your bone constraints and animations. Don’t do it. Leave your Armature at its default (0, 0, 0) rotation in Blender. The “Armature” is buried somewhere in my character models’ hierarchies anyway, and my bones (thanks to the 1. Export Settings part above) export with the correct +Z forward, +Y up axes, so it’s not a big deal for me being that every other object is completely correct!

And last bit: I hope this helps you. It took a really long time to figure this out. Now that it’s figured out for me and my workflow, the rotation issues are never that much of a problem anymore! :smile:

4 Likes

Thanks this is really helpful!

1 Like

I’m a bit late to the party here, but I think I can contribute to this.

I’ve written a FBX Exporter add-on for Blender that performs those steps automatically before exporting the FBX file. Additionally, it preserves the rotations that may be already present in the Blender file so Unity reads them properly (no more unwanted “X -90” rotations). Here’s the link:

However I haven’t tested it with skeletons. Could you please try this exporter and let me know if/how it works? Or if you could provide a simple example scene, I would try it myself. Thanks!

5 Likes

@Edy This is amazing, I love that you open-sourced it as well on Github!

Definitely gotta check this out sometime, though I haven’t used Blender in some time lately haha.

1 Like

@ModLunar Cool! Let me know if you find any issue