Straafe / unity-editor-tools

Some simple quality of life tools for some specific tasks in Unity
50 stars 17 forks source link

Keyframe offset by one in the timeline #2

Closed vspin closed 2 years ago

vspin commented 2 years ago

Everything works except that the reversed animation keyframes begin at 1 in the timeline, and not at zero.

Edit. Just noticed the following two lines:

//K.time = clipLength - K.time - (1 / clip.frameRate); //Reversed sprite clips may be offset by 1 frame time
K.time = clipLength - K.time;
Straafe commented 2 years ago

Yea, I do not use sprites very often and am not smart enough to know why for sprites it is offset like that, but glad you spotted that line