Big Trouble In Little Blender – 1.7 Initial Unity FBX Import & Animation Notes (Part2)

blender-socket

Notes made after creating a spring for a game element in my current Unity project.

I’d built a model and animated it in Blender using rotation, location and scale – no armatures required. I wanted to be able to import the model into Unity with the multi-mesh animation all ready to go. These notes are based on the mesh having only one animation

These notes probably won’t be useful for anyone other than myself. I’m planning on building models as required, rather than in one lump – Which means I’ll forget everything in the meantime & have to relearn every model I build – To avoid this as much as possible, I’m hoping to use these posts as a reference point.

Apologies for any obvious mistakes or omissions – These notes were made as I was learning, and not necessarily as I had learnt.

 


 

Exporting a mesh with a single animation created using rotation /scale and location – Using no armatures.

Important safety tip:
when creating animations this way –
if the ‘scale’ of a mesh is modified during the animation
the scale of all child meshes will also be affected
this will only be apparent after importing into unity
the animation will play as expected in blender.

1.1 Animation Without Armature

First step – change layout to ‘Animation‘ (top of the window, right of the help menu)

1.2. Goto animation layout

change the view in the top left frame from dope sheet to ‘Action Editor

1.3 view action editor

in the ‘Outlier‘ frame on the far right, select all the meshes with animations you want to merge

1.4 select all animated meshes

Back in the ‘Action View‘ frame (top left) – click ‘+ New‘ button to create a new ‘action’ – this will merge the animations of the selected meshes into one action

1.5 click to create merged animation
Blender will be give this the default name ‘Action

1.6 New animation called action

Click the F button – Positioned next to the Action section

1.7 Press F

Looking something like this;

1.8 looks something like this

Now the action has been created – it needs to be exported to Unity (in this example I’m exporting as an as an FBX)

Select File->Export->FBX

1.9 when exporting the fbx

This will display the ‘export FBX‘ options frame
In this section – Select ‘Animation‘ & untick everything except ‘Baked Animation

1.10 turn off everything except baked animation

Next – in the ‘Armatures‘ section – clear the ‘Add Leaf Bones‘ tickbox

1.11 no armature so untick leaf bones

in the ‘Main‘ section – make sure only mesh is selected (Empty, Camer, Lamp, Armat & Other should be deselected)

1.12 only the mesh needs to be exported

& Finally – Click the ‘Export FBX‘ to export and save the model into the Assets folder in your Unity project.

When the model is opened in Unity – it should only show one animation (called ‘Scene‘)

01c-FullScreen-&-large-base---2-ALT---2

 


 

Last post: 1.6 Animating a basic spring

Contents page.

 


Advertisements