pixi.js
    Preparing search index...

    Interface ContextDestroyOptions

    Options when destroying a graphics context. Controls the cleanup of graphics-specific resources.

    // Basic context cleanup
    graphics.destroy({
    context: true
    });

    // Full graphics cleanup
    graphics.destroy({
    context: true,
    texture: true,
    textureSource: true
    });
    interface ContextDestroyOptions {
        context?: boolean;
    }
    Index

    Properties

    Properties

    context?: boolean

    Whether to destroy the graphics context associated with the graphics object.

    false
    
    graphics.destroy({ context: true });