- Home /
Question by
Hello123 · Jul 13, 2015 at 12:57 AM ·
animationunity5speedlegacyanimation
Change animation speed in a script on Unity 5(JavaScript)
How can change the Legacy animation speed in a script on Unity 5. I know Unity changed a little bit of coding. I am new on Unity 5. In Unity 4 was animation["animation name"].speed = 0.5;
Comment
Answer by treemengames · Jul 14, 2015 at 09:49 AM
private var anim : Animation;
function Awake () {
anim = GetComponent.<Animation>();
anim["animationName"].speed = 2.0;
}
Your answer
Follow this Question
Related Questions
How to change animation speed in Unity 5 0 Answers
Animated Billboard or Animated Model? 2 Answers
Export Character and Animations from blender into Unity 5.5.3 folded looking character 0 Answers
function behaves unexpectedly inside a coroutine. 2 Answers
Animation based on replacing sprites in sprite renderer does not work? 0 Answers