graphics.off_draw
Remove a registered overlay drawing callback.
Syntax
ue.graphics.off_draw(id: integer) -> booleanParameters
| Parameter | Type | Description |
|---|---|---|
id | integer | ID returned by graphics.on_draw. |
Returns
| Type | Description |
|---|---|
boolean | true if the callback existed and was removed. |
Example
local id = ue.graphics.on_draw(function()
ue.graphics.circle(100, 100, 10)
end)
ue.graphics.off_draw(id)