unity Animation获取底下所有Clip

Dictionary _clips = new Dictionary();

Animation _ani = prefabObj.GetComponent();

foreach (AnimationState _state in _ani)

{

_clips.Add(_state.name, _ani.GetClip(_state.name));

DebugX.Log(_state.name);

}

你可能感兴趣的:(unity Animation获取底下所有Clip)