DrawingOverview
cleardrawcache
Clears retained drawing objects.
Details#
Removes cached retained drawing objects. Its scope includes other retained drawings in the session, so it is broader than removing a single object. It is separate from Paint:Clear callback cleanup.
Examples#
Example
local text = Drawing.new("Text")
text.Text = "temporary"
cleardrawcache() -- clears all retained drawings in this session