Options when destroying a graphics context. Controls the cleanup of graphics-specific resources.
// Basic context cleanupgraphics.destroy({ context: true});// Full graphics cleanupgraphics.destroy({ context: true, texture: true, textureSource: true}); Copy
// Basic context cleanupgraphics.destroy({ context: true});// Full graphics cleanupgraphics.destroy({ context: true, texture: true, textureSource: true});
Optional
Whether to destroy the graphics context associated with the graphics object.
false Copy
false
graphics.destroy({ context: true }); Copy
graphics.destroy({ context: true });
Options when destroying a graphics context. Controls the cleanup of graphics-specific resources.
Example
See