Constructors
constructor
- new default(textureManager, x, y, texture): default
Parameters
- textureManager: any
- x: any
- y: any
- texture: any
Properties
Private
phaserSprite
phaserSprite: any
pipelineData
pipelineData: any
textureManager
textureManager: any
Methods
add
- add(obj): void
Returns void
addAt
- addAt(obj, index): void
Returns void
addedToScene
- addedToScene(): any
Returns any
clearTint
- clearTint(): any
Returns any
destroy
- destroy(): any
Returns any
disableInteractive
- disableInteractive(): any
Returns any
getAll
- getAll(): any[]
Returns any[]
getAt
- getAt(index): any
Returns any
getIndex
- getIndex(obj): number
Returns number
off
- off(event, callback, source): void
Parameters
- event: any
- callback: any
- source: any
Returns void
on
- on(event, callback, source): any
Parameters
- event: any
- callback: any
- source: any
Returns any
once
- once(event, callback, source): any
Parameters
- event: any
- callback: any
- source: any
Returns any
remove
- remove(obj): void
Returns void
removeAll
- removeAll(): void
Returns void
removeFromDisplayList
- removeFromDisplayList(): any
Returns any
setAlpha
- setAlpha(alpha): any
Returns any
setAngle
- setAngle(angle): any
Returns any
setCrop
- setCrop(x, y, width, height): any
Parameters
- x: any
- y: any
- width: any
- height: any
Returns any
setFrame
- setFrame(frame, updateSize?, updateOrigin?): any
Parameters
- frame: any
Optional
updateSize: booleanOptional
updateOrigin: boolean
Returns any
setInteractive
- setInteractive(hitArea, hitAreaCallback, dropZone): any
Parameters
- hitArea: any
- hitAreaCallback: any
- dropZone: any
Returns any
setMask
- setMask(): void
Returns void
setName
- setName(name): any
Returns any
setOrigin
- setOrigin(x, y): any
Returns any
setPipeline
- setPipeline(obj): any
Returns any
setPipelineData
- setPipelineData(key, value): void
Returns void
setPosition
- setPosition(x, y): any
Returns any
setPositionRelative
- setPositionRelative(source, x, y): any
Returns any
setScale
- setScale(scale): any
Returns any
setSize
- setSize(width, height): any
Returns any
setSizeToFrame
- setSizeToFrame(frame?): Sprite
Parameters
Optional
frame: boolean | Frame
Returns Sprite
setTexture
- setTexture(key, frame?): default
Parameters
- key: string
Optional
frame: string | number
setTint
- setTint(color): any
Returns any
setTintFill
- setTintFill(color): any
Returns any
setVisible
- setVisible(visible): any
Returns any