unity如何用C#代码实现动画的倒放

这是我在网上查的代码,为什麽会报错呢???
2025-06-28 22:44:05
推荐回答(1个)
回答1:

你用的unity5吧?要先获取组件的,先这样anim = GetComponent();,再anim[""].speed = -1.0f;