pixi.js
    Preparing search index...

    Interface TextureDestroyOptions

    Options when destroying textures through .destroy() calls. Controls how thoroughly textures and their sources are cleaned up.

    // Basic texture cleanup
    sprite.destroy({
    texture: true
    });

    // Complete texture cleanup
    sprite.destroy({
    texture: true,
    textureSource: true
    });
    interface TextureDestroyOptions {
        texture?: boolean;
        textureSource?: boolean;
    }
    Index

    Properties

    texture?: boolean

    Whether to destroy the texture for the display object.

    false
    
    texturedObject.destroy({ texture: true });
    
    textureSource?: boolean

    Whether to destroy the underlying texture source. Use carefully with shared texture sources.

    false
    
    texturedObject.destroy({ textureSource: true });