pixi-jsInterfaces
Interface: TextureDestroyOptions
Defined in: node_modules/pixi.js/lib/scene/container/destroyTypes.d.ts:58
Options when destroying textures through .destroy() calls.
Controls how thoroughly textures and their sources are cleaned up.
Example
// Basic texture cleanup
sprite.destroy({
texture: true
});
// Complete texture cleanup
sprite.destroy({
texture: true,
textureSource: true
});
See
- Container#destroy For general destruction
- Texture#destroy For texture cleanup
Standard
Properties
texture?
> optional texture?: boolean
Defined in: node_modules/pixi.js/lib/scene/container/destroyTypes.d.ts:67
Whether to destroy the texture for the display object.
Default
false
Example
texturedObject.destroy({ texture: true });
textureSource?
> optional textureSource?: boolean
Defined in: node_modules/pixi.js/lib/scene/container/destroyTypes.d.ts:77
Whether to destroy the underlying texture source. Use carefully with shared texture sources.
Default
false
Example
texturedObject.destroy({ textureSource: true });