Returns the sprite bitmap actual size in pixels.
Sample:
void onSceneLoaded() { // load a 256x256 sprite LoadSprite("animations/animated_sprite_256x256.png"); vector2 size = GetSpriteSize("animations/animated_sprite_256x256.png"); print("frame width: " + size.x); print("frame height: " + size.y); }
Output:
frame width: 256 frame height: 256