How to export a model from 3dmax 2014 with several layers of CAT animations, so that when importing to unity3d a character has several animations and not one?
1 answer
If you just need to use additional animation files, add them via AddClip:
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { public AnimationClip walkClip; public Animation anim; void Start() { anim = GetComponent<Animation>(); anim.AddClip(anim.clip, "shoot", 0, 10); anim.AddClip(anim.clip, "walk", 11, 20, true); anim.AddClip(anim.clip, "idle", 21, 30, true); } } Animation files are imported from 3D MAX on a bare skeleton into fbx files and should be named in the format: имя@animation.fbx
|