graphics.off_draw

Remove a registered overlay drawing callback.

Syntax

ue.graphics.off_draw(id: integer) -> boolean

Parameters

ParameterTypeDescription
idintegerID returned by graphics.on_draw.

Returns

TypeDescription
booleantrue 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)

On this page