先得到 Animator 组件
然后runtimeAnimatorController.animationClips
这里面的name和length就是了
local acs = self.m_Animator.runtimeAnimatorController.animationClips
for i = 0, acs.Length - 1 do
local ac = acs[i]
Log.Debug(ac.name)
Log.Debug(ac.length)
end
先得到 Animator 组件
然后runtimeAnimatorController.animationClips
这里面的name和length就是了
local acs = self.m_Animator.runtimeAnimatorController.animationClips
for i = 0, acs.Length - 1 do
local ac = acs[i]
Log.Debug(ac.name)
Log.Debug(ac.length)
end