애니메이션 스테이트 가지고 오기 레거시 애니메이션 스피드 조절


anim = GetComponent<Animation>();
// 애니메이션 스테이트 
AnimationState animStat;

//애니메이션 클립 "run"을 가지고 와서
     animStat = anim["run"];
     //스피드를 올려준다.
     animStat.speed = 5f;

댓글