Skip to content

Sprite

const Sprite: BuiltinComponentDef<SpriteData>

Defined in: ecs/component.ts:883

A textured quad. size is in world units and is the drawn extent — the texture is stretched into it rather than deciding it — and pivot says where in that rectangle the entity’s position sits. layer is the painter order between sprites; within a layer, storage order decides.