Quantcast
Viewing latest article 22
Browse Latest Browse All 44

How to set a keyframe of an animation iside script?

Hi I've created a simple 360o rotation animation,played in loop.When a button is pressed the animation is stopped. But I'd like to align rotation after stopping to multiply of 60o. Well,I've added in Unity several keyframes at 60,120,180o etc But the problem is - how can I check current frame of an animation,and how can I set it to nearest keyframe set?

Viewing latest article 22
Browse Latest Browse All 44

Trending Articles