AnimatedSpriteComponentOptions
Defined in: renderer/src/AnimatedSpriteComponent.ts:23
Options for creating an AnimatedSpriteComponent.
Properties
Section titled “Properties”anchor?
Section titled “anchor?”
optionalanchor?:Vec2Like| readonly [number,number]
Defined in: renderer/src/AnimatedSpriteComponent.ts:34
Default sprite anchor (0,0 = top-left, 0.5,0.5 = center, 1,1 = bottom-right).
Per-AnimationController AnimationDef.anchor overrides this when set.
interactive?
Section titled “interactive?”
optionalinteractive?:object
Defined in: renderer/src/AnimatedSpriteComponent.ts:44
Make the sprite interactive. See SpriteComponentOptions.interactive — the shape and semantics are identical here.
consumeOnInteraction?
Section titled “consumeOnInteraction?”
optionalconsumeOnInteraction?:boolean
eventMode?
Section titled “eventMode?”
optionaleventMode?:"static"|"dynamic"
layer?
Section titled “layer?”
optionallayer?:string
Defined in: renderer/src/AnimatedSpriteComponent.ts:29
Render layer name. Default: “default”.
source?
Section titled “source?”
optionalsource?:FrameSource
Defined in: renderer/src/AnimatedSpriteComponent.ts:25
Serializable frame source (sprite strip or atlas).
textures?
Section titled “textures?”
optionaltextures?: readonlyTextureInput[]
Defined in: renderer/src/AnimatedSpriteComponent.ts:27
Raw texture array (not serializable, backward compat).
optionaltint?:string|number
Defined in: renderer/src/AnimatedSpriteComponent.ts:39
Tint applied to the sprite. Pixi v8 accepts a numeric color
(0xff0000) or any string color it understands ("#ff0000", "red").