Drawing.clear
Removes all Drawing objects owned by the current game session.
Syntax
Drawing.clear() -> ()
Also available as
cleardrawcacheclear_draw_cache
Description
This clears the drawing collection and destroys its CoreGui mirror nodes. Existing drawing handles no longer refer to live objects afterward. Prefer drawing:Remove when removing only one object.
Example
local line = Drawing.new("Line")
line.From = Vector2.new(10, 10)
line.To = Vector2.new(100, 100)
line.Visible = true
Drawing.clear()
These are Game executor contracts. Check build requirements and session lifetimes before using them.
