Skip to content
ClassGame Objects & Sprites@public

FlxSpriteRenderHandle ​

Pixi container/sprite pair synchronized from one FlxSprite.

ts
export declare class FlxSpriteRenderHandle implements FlxRenderHandle

Constructors ​

ts
constructor(owner: FlxSprite, onDestroy?: () => void)

Constructs a new instance of the FlxSpriteRenderHandle class

ParameterTypeDescription
ownerFlxSprite-
onDestroy() => void-

Properties ​

PropertyModifiersTypeDescription
destroyedreadonlyboolean-
spritereadonlySprite-
viewreadonlyContainer-

Methods ​

destroy() ​

ts
destroy(): void

Returns: void

sync() ​

ts
sync(camera?: FlxCamera, interpolationAlpha?: number): void

Parameters:

ParameterTypeDescription
cameraFlxCamera-
interpolationAlphanumber-

Returns: void

Released under the MIT License.