pixi-jsInterfaces
Interface: ContextDestroyOptions
Defined in: node_modules/pixi.js/lib/scene/container/destroyTypes.d.ts:101
Options when destroying a graphics context. Controls the cleanup of graphics-specific resources.
Example
// Basic context cleanup
graphics.destroy({
context: true
});
// Full graphics cleanup
graphics.destroy({
context: true,
texture: true,
textureSource: true
});
See
- Graphics#destroy For graphics destruction
- DestroyOptions For all destroy options
Standard
Properties
context?
> optional context?: boolean
Defined in: node_modules/pixi.js/lib/scene/container/destroyTypes.d.ts:110
Whether to destroy the graphics context associated with the graphics object.
Default
false
Example
graphics.destroy({ context: true });