Skip to main content

TextureAtlas

A texture atlas object, with helper functions related to a texture atlas


getWidth​

Returns the width of this atlas


listSprites​

Returns a table with all sprite paths under this atlas


getSpriteUV(string)​

Returns a Vector4 containing the UV of the given sprite

The UV is ordered as U0, V0, U1, V1


getHeight()​

Returns a Vector4 containing the UV of the given sprite

The UV is ordered as U0, V0, U1, V1