Class "AnimationFrame"⚓︎
Cached data for a single frame of one layer of an animation from an ANM2 file. Shared by all Sprites using the same ANM2 and cannot be modified.
Note that interpolation and root animations have already been baked into these values.
Otherwise, these values correspond to the same ones viewable in the ANM2 editor, and have been named the same way.
Obtained via AnimationLayer:GetFrame().
Functions⚓︎
GetColor ()⚓︎
const Color GetColor ( )⚓︎
GetCrop ()⚓︎
const Vector GetCrop ( )⚓︎
GetEndFrame ()⚓︎
int GetEndFrame ( )⚓︎
Note that the "end frame" is the start frame of the NEXT AnimationFrame.
That is, THIS AnimationFrame is no longer shown on this frame.