example.md 387 B


tags: sprite title: Sprite size brief: This example shows how to get the size of a sprite at run-time author: Defold Foundation scripts: size.script

thumbnail: size_thumb.png

The example uses two game objects, each with a sprite component and a label (to show the size). One of game objects contains the script that reads the size and shows it on the labels:

size