pixi-jsInterfaces
Interface: TextDestroyOptions
Defined in: node_modules/pixi.js/lib/scene/container/destroyTypes.d.ts:123
Options when destroying a text object. Controls whether associated text styles should be cleaned up along with the text object itself.
// Basic text cleanup
text.destroy({ style: false }); // Keep style for reuse
text.destroy({ style: true }); // Destroy style as well
Standard
Properties
style?
> optional style?: boolean
Defined in: node_modules/pixi.js/lib/scene/container/destroyTypes.d.ts:129
Whether to destroy the text style object along with the text. Use carefully with shared styles.
Default
false