Drawing.new
Creates a retained drawing object.
Objects persist until removed, cleared or invalidated by a world change. Class-specific properties are documented on the drawing object pages. The final Lua wrapper also tracks drawings for GUI lifecycle integration.
Drawing.new(class: string): DrawingObjectParameters
| Parameter | Type | Description |
|---|---|---|
class | string | Line, Circle, Square, Triangle, Quad, Text or Image. |
See DrawingObject for the object’s members.
Example
local label = Drawing.new("Text")
label.Text = "Example"
label.Position = Vector2.new(40, 40)
label.Visible = true
label:Remove()