unity-game-enginefbx

How to create .anim file from .fbx file in Unity?


I am new in using Unity. In my game, models and animations are exported from 3DMAX as .fbx files, animations are clipped in Unity, but there's no .anim files generated, I need separated .anim files because the following code will not work even I have clipped animation "run":

var clip = animation["run"];

Can someone help me? thanks in advance.

rig model animations import settings


Solution

  • You have to set the animations up in the importing. Select the .fbx model in Unity and go to Animations tab. There you have to define the clips. The .anim files will be generated under the model.

    If you do not see the clips inside the animations tab, change the "Animation Type" under Rig to Legacy.