Quantcast
Channel: Latest Questions by MasterBLB
Viewing all articles
Browse latest Browse all 44

How to set a keyframe of an animation iside script?

$
0
0
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 all articles
Browse latest Browse all 44

Latest Images

Trending Articles





Latest Images