I can’t seem to figure this out and would reeeally appreciate some help on this.
I have an animated character in Blender. Within the single animation are an idle cycle, a walk cycle and a run cycle.
I export and get everything into Unity, but I can’t seem to split the animation properly. I just get four of each animation in the “Select Animation Clip” window and nothing happens in game mode.
BTW. What is the correct way to name these split animations? I assume they have to be same as the names of the animations in the Third Person Player Animation script (that I have copied from the Lerbz turorial).
I have tried making multiple action strips in Blender, but I only get one animation into Unity. I can export the idle “pose” as its own action and also get the walk animation in, but that seems to be all i can do from Blender.
Tearing my hair out here! If anyone can step through EXACTLY what one does to export multiple animations (actions) to Unity I would be eternally grateful. Have searched the web all day and a lot of last night to find a solution and can’t really find anything that describes this process in detail. I admit I am a relative noob to both Blender and Unity, but having done all the hard work animating, getting stuck on this part of the process is really annoying.
I have a mesh controlled by an armature that uses IK in Blender.
Ok, so after properly working out how to create separate animations in Blender, I have worked this out.
I created idle, walk, and run animations again from scratch. It is important to create a new action in the action editor for each new animation. Creating a new animation will basically just duplicate the current animation, so you have to make sure you delete all of the key frames in your newly created action. Once you have done this and sensibly renamed your action, you can just go ahead and create your animation. I just created each animation from frame number 0 and Unity seams to understand where each starts and finishes automatically.
One thing that I did too, which I think is important, is to click on the F button next to the action. Do this for each action to ensure that it is kept as a data block even when it is not assigned (active) on the armature. I could be wrong here and they may be kept anyway, but it works fine for me doing it this way, and it never hurts to be extra safe.
After finishing all the animations, I just exported to FBX format and, after following this great turorial by Patrick Boelens, I was able to use the animations with no problems in Unity, and even learned how to create my own player controller script. I now have a nice little early working prototype of my character walking around 3D space.
It should be noted that I did nothing with the animations in Blender’s NLA editor. Nor did I use the split animations function in Unity by defining each animation’s frame range.
Hope this helps. Just post comments if you are still stuck.
All the best,
Ben
I find that exporting as a COLADA file works nicely then you define the frame range for each animation in Unity. Not sure if that’s what your trying to do though.