AnimationTexture
Basic Properties
Field | Description |
---|---|
imageLocation | The resource location for the image |
cellSize | The size of each cell in the texture grid |
from | The starting cell index for animation |
to | The ending cell index for animation |
animation | The animation speed value |
color | The color overlay applied to the texture |
APIs
setTexture
Sets the texture
setCellSize
Sets the cell size. Refer to how many cells does the animation texture need to be divided into (side length).
setAnimation
Sets the animation range from
which cell to
which cell.
setAnimation
Sets the animation speed. Tick time between cells.
setColor
Sets the texture color.