Returns the sprite current frame size.
Sample:
void onSceneLoaded()
{
// load a 256x256 sprite
LoadSprite("animations/animated_sprite_256x256.png");
// divides the sprite into a 4x2 rect (4 columns and 2 rows)
SetupSpriteRects("animations/animated_sprite_256x256.png", 4, 2);
vector2 size = GetSpriteFrameSize("animations/animated_sprite_256x256.png");
print("frame width: " + size.x);
print("frame height: " + size.y);
}
Output:
frame width: 64 frame height: 128