Skip to content

TilingSprite

Creates a TilingSprite

API

TilingSprite Attributes

NameTypeDefaultDescription
texturestring objectundefinedThe texture to use on the TilingSprite.
tile-scale

number array object

1The scale factor of the tile.
tile-scale-xnumber1The scale factor of the tile's x axis.
tile-scale-ynumber1The scale factor of the tile's y axis.
tile-position

number array object

0The offset position of the tile.
tile-position-xnumber0The offset position of the tile's x axis.
tile-position-ynumber0The offset position of the tile's y axis.
tile-transformobjectfalseWhether or not anchor and position transforms should be applied to tiles.

more props in Container Props and PIXI.TilingSprite

TilingSprite Events

NameTypeDescription
renderfunctioncustom render function

more events in Container Events