TExcelTAD
Home › Assets, Tools & Shipping › Export Settings per Engine

Export Settings per Engine

Blender is free, scriptable and good enough for most indie art pipelines, which makes it the tool programmers end up owning. This lesson gives tested starting points for exporting to each engine. Exporter options are listed by their UI label and their Python name, because the next lesson automates them.

Note: Options below are from Blender's bundled FBX exporter (export_scene.fbx) and the Khronos glTF exporter (export_scene.gltf) that ships with Blender. Labels move between Blender versions; the Python names are more stable. Always confirm with the 1 m cube calibration kit from Units, Axes & Scale.

Before any export

  1. Apply transforms (Object → Apply → All Transforms): rotation 0, scale 1.
  2. Set the origin to the pivot the engine should use.
  3. Check normals (Face Orientation overlay) and remove doubles (Mesh → Clean Up → Merge by Distance).
  4. Name things the way the engine expects (see the import hints below).
  5. Model facing −Y, +Z up, at real-world size with the scene's unit scale at 1.0.

Unity (FBX)

UI label Python Setting Why
Selected Objects use_selection on export only what you mean to
Apply Scalings apply_scale_options FBX All ('FBX_SCALE_ALL') keeps the imported object at scale 1
Forward / Up axis_forward / axis_up -Z / Y (the defaults) Unity's Y-up
Apply Unit apply_unit_scale on (default)
Apply Transform bake_space_transform on for static meshes bakes the axis change into vertices instead of a −90° rotation. Blender marks it experimental and known to break armatures, so leave it off for rigged characters
Object Types object_types {'MESH', 'ARMATURE'} (+'EMPTY' if you use them as pivots) no cameras or lights
Add Leaf Bones add_leaf_bones off avoids extra _end bones in the skeleton
Apply Modifiers use_mesh_modifiers on (default)

On the Unity side, the model importer also has a Bake Axis Conversion option that removes the rotation on import, and a Convert Units option; settle on one approach per project. Unity can import .blend files directly when Blender is installed, but that makes every teammate and CI machine depend on Blender: export FBX instead.

Unreal Engine (FBX)

UI label Python Setting Why
Apply Scalings apply_scale_options FBX Units Scale ('FBX_SCALE_UNITS') FBX carries the unit; Unreal converts metres to centimetres
Forward / Up axis_forward / axis_up defaults Unreal's importer converts the FBX axis system (Convert Scene on)
Smoothing mesh_smooth_type Face ('FACE') without smoothing data Unreal's importer warns about missing smoothing groups
Add Leaf Bones add_leaf_bones off
Tangent Space use_tspace optional on exports tangents (needs a triangulated mesh or quads/tris only)
Object Types object_types {'MESH', 'ARMATURE'}

Unreal's naming conventions help its importer: collision shapes as separate meshes named UCX_<MeshName>_00 (convex), UBX_ (box), USP_ (sphere), UCP_ (capsule) are imported as collision, and LOD groups can come in as mesh LODs.

Godot 4 (glTF)

Godot's native format is glTF, and its importer reads name suffixes as import hints, for example -col (mesh plus collision), -colonly (collision only), -convcolonly (convex collision only), -noimp (skip the node) and -loop on animation names. You can also drop .blend files straight into a Godot 4 project: Godot calls your Blender installation to convert them (path set in Editor Settings → FileSystem → Import → Blender). For teams and CI, exporting .glb is simpler.

UI label Python Setting
Format export_format 'GLB'
+Y Up export_yup on (default)
Apply Modifiers export_apply on
Selected Objects use_selection on
Animation export_animations on for rigged/animated assets
Cameras / Punctual Lights export_cameras / export_lights off unless the scene needs them

The web (three.js, Babylon.js)

Same as Godot: .glb, +Y up, modifiers applied. Then compress for download size, either with the exporter's Draco option (export_draco_mesh_compression_enable) or afterwards with gltf-transform or gltfpack, and consider KTX2 textures. Check that your loader has the matching decoder (3D Web Games with Three.js).

A runnable model: choosing settings

A pipeline usually stores these presets in one place and picks one per target. This model prints the keyword arguments a Blender script would pass to each exporter:

python · try it yourself
PRESETS = {
    "unity": ("fbx", dict(apply_scale_options="FBX_SCALE_ALL", axis_forward="-Z", axis_up="Y",
                          bake_space_transform=True, object_types={"MESH", "ARMATURE"},
                          add_leaf_bones=False)),
    "unreal": ("fbx", dict(apply_scale_options="FBX_SCALE_UNITS", mesh_smooth_type="FACE",
                           object_types={"MESH", "ARMATURE"}, add_leaf_bones=False)),
    "godot": ("gltf", dict(export_format="GLB", export_yup=True, export_apply=True)),
    "web": ("gltf", dict(export_format="GLB", export_yup=True, export_apply=True,
                         export_draco_mesh_compression_enable=True)),
}

def export_call(target, name, rigged=False):
    fmt, opts = PRESETS[target]
    opts = dict(opts, use_selection=True)
    if fmt == "fbx" and rigged:
        opts["bake_space_transform"] = False       # experimental option, breaks armatures
    ext = ".fbx" if fmt == "fbx" else ".glb"
    def show(v):  # sets print sorted, so the output is stable
        return "{" + ", ".join(map(repr, sorted(v))) + "}" if isinstance(v, set) else repr(v)
    args = ", ".join(f"{k}={show(v)}" for k, v in sorted(opts.items()))
    return f"bpy.ops.export_scene.{fmt}(filepath='export/{target}/{name}{ext}', {args})"

print(export_call("unity", "crate"))
print(export_call("unity", "hero", rigged=True))
print(export_call("godot", "crate"))
bpy.ops.export_scene.fbx(filepath='export/unity/crate.fbx', add_leaf_bones=False, apply_scale_options='FBX_SCALE_ALL', axis_forward='-Z', axis_up='Y', bake_space_transform=True, object_types={'ARMATURE', 'MESH'}, use_selection=True)
bpy.ops.export_scene.fbx(filepath='export/unity/hero.fbx', add_leaf_bones=False, apply_scale_options='FBX_SCALE_ALL', axis_forward='-Z', axis_up='Y', bake_space_transform=False, object_types={'ARMATURE', 'MESH'}, use_selection=True)
bpy.ops.export_scene.gltf(filepath='export/godot/crate.glb', export_apply=True, export_format='GLB', export_yup=True, use_selection=True)

Test yourself

Why should bake_space_transform (Apply Transform) stay off for rigged characters?

  1. It doubles file size
  2. Blender marks it experimental and known to break armatures and animations
  3. Unity rejects it
  4. It removes UVs

How does Unreal recognise a custom convex collision mesh in an FBX?

  1. A material named Collision
  2. The UCX_<MeshName>_## naming prefix
  3. A -col suffix
  4. A custom property

Why export .glb/.fbx files instead of importing .blend files directly into the engine?

  1. .blend files are larger
  2. Direct import needs Blender installed on every teammate's and CI machine
  3. .blend files can't hold meshes
  4. Engines can't read them at all