pixi.js
    Preparing search index...

    Interface TextDestroyOptions

    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
    interface TextDestroyOptions {
        style?: boolean;
    }
    Index

    Properties

    Properties

    style?: boolean

    Whether to destroy the text style object along with the text. Use carefully with shared styles.

    false