Class
Sprite2D
View sourceExtends Object2D
A textured 2D sprite rendered from a generated unit quad.
Constructor
View source
Properties
atlases : TextureAtlas[]
View sourceThe textures and layouts available to the sprite.
Default: []
atlasIndex : number
View sourceThe index of the selected texture atlas.
Default: 0
sliceIndex : number
View sourceThe index of the selected slice in the current atlas layout. An invalid index selects the complete texture.
Default: 0
size : Vector2 | undefined
View sourceOptional size override in image-space units. When undefined, the sprite uses the dimensions of its selected image cutout.
tint : Color
View sourceColor multiplied with the sampled image.
Default: ...
alphaBlend : AlphaBlend
View sourceAlpha classification used by the sprite renderer.
Default: ...