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);
}
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
本文链接:https://www.haomeiwen.com/subject/rgmpgttx.html
网友评论