SpriteData
Defined in: renderer/src/SpriteComponent.ts:58
Serialisable snapshot of a SpriteComponent.
Properties
Section titled “Properties”alpha?
Section titled “alpha?”
optionalalpha?:number
Defined in: renderer/src/SpriteComponent.ts:62
anchor?
Section titled “anchor?”
optionalanchor?:object
Defined in: renderer/src/SpriteComponent.ts:63
x:
number
y:
number
effects?
Section titled “effects?”
optionaleffects?:EffectStackSnapshot
Defined in: renderer/src/SpriteComponent.ts:75
interactive?
Section titled “interactive?”
optionalinteractive?:object
Defined in: renderer/src/SpriteComponent.ts:71
Interactive opt-in config from the original options. Persisted so
restored scenes keep eventMode and the consumeOnInteraction mark on
the rebuilt sprite — without this, save/load silently strips the
tappable behavior.
consumeOnInteraction?
Section titled “consumeOnInteraction?”
optionalconsumeOnInteraction?:boolean
eventMode?
Section titled “eventMode?”
optionaleventMode?:"static"|"dynamic"
layer:
string
Defined in: renderer/src/SpriteComponent.ts:60
optionalmask?:MaskSnapshot
Defined in: renderer/src/SpriteComponent.ts:76
textureKey
Section titled “textureKey”textureKey:
string|null
Defined in: renderer/src/SpriteComponent.ts:59
optionaltint?:number
Defined in: renderer/src/SpriteComponent.ts:61
visible?
Section titled “visible?”
optionalvisible?:boolean
Defined in: renderer/src/SpriteComponent.ts:64