Skip to content

SpriteMask

const SpriteMask: BuiltinComponentDef<SpriteMaskData>

Defined in: ecs/component.ts:962

Turns this entity’s Sprite into a stencil: the sprites drawn AFTER it that ask to be masked (Sprite.maskInteraction) are cut by its shape. The mask’s own sprite is not drawn while it is masking — it is the cut, not a picture.