Skip to content

SpriteData

Defined in: renderer/src/SpriteComponent.ts:24

Serialisable snapshot of a SpriteComponent.

optional alpha?: number

Defined in: renderer/src/VisualComponent.ts:73

VisualComponentData.alpha


optional anchor?: object

Defined in: renderer/src/SpriteComponent.ts:26

x: number

y: number


optional blendMode?: BLEND_MODES

Defined in: renderer/src/VisualComponent.ts:76

Omitted while the object blends normally, which is the common case.

VisualComponentData.blendMode


optional effects?: EffectStackSnapshot

Defined in: renderer/src/VisualComponent.ts:83

VisualComponentData.effects


optional interactive?: VisualInteractiveOptions

Defined in: renderer/src/VisualComponent.ts:82

See VisualComponentOptions.interactive — persisted so restored scenes keep eventMode and the consumeOnInteraction mark on the rebuilt container.

VisualComponentData.interactive


layer: string

Defined in: renderer/src/VisualComponent.ts:71

VisualComponentData.layer


optional mask?: MaskSnapshot

Defined in: renderer/src/VisualComponent.ts:84

VisualComponentData.mask


textureKey: string

Defined in: renderer/src/SpriteComponent.ts:25


optional tint?: ColorSource

Defined in: renderer/src/VisualComponent.ts:72

VisualComponentData.tint


optional visible?: boolean

Defined in: renderer/src/VisualComponent.ts:74

VisualComponentData.visible