Unity 获取Animation中的所有Clip

获取Animation中的所有Clip

在这里插入图片描述

      		List<string> clips = new List<string>();
            foreach (AnimationState item in animation)
            {
    
    
                var clipName = item.name;
                clips.Add(clipName);
            }

猜你喜欢

转载自blog.csdn.net/qq_26318597/article/details/131686839
今日推荐