ReferenceDrawing

drawing:Remove

Removes one Drawing object from the overlay.

Syntax

drawing:Remove() -> ()

Also available as

drawing:Destroy

Description

Use this when an interface closes or a script no longer needs a primitive. The Destroy spelling is also available. Do not continue setting properties on a removed handle; it no longer contributes to rendering.

Example

local text = Drawing.new("Text")
text.Text = "temporary"
text:Remove()

These are Game executor contracts. Check build requirements and session lifetimes before using them.