中文
Appearance
Animation.clipCount
Animation
当前分配给此动画的剪辑数。
通过使用此方法,您可以在运行时了解当前Animation组件中注册的动画剪辑数量。这对于动态管理和控制动画剪辑非常有用。
number
let animation = this.gameObject.GetComponent<Animation>(Animation); let clip = animation.clipCount;