isrenderobj Synchronous
Check whether a value is a drawing handle that still refers to a live object. This is useful before updating a handle kept in a table after some objects may have been removed.
Luau
isrenderobj(value: any) -> booleanParameters
| Parameter | Type | Description |
|---|---|---|
value | any | Any value to inspect. |
Returns
booleantrue for an existing DrawingObject; false for other values and removed drawings.
Usage notes
A removed handle can still be held in a variable, so ordinary truthiness does not tell you whether it is usable.
Example
Luau
local marker = Drawing.new("Circle")
print(isrenderobj(marker)) -- true
marker:Remove()
print(isrenderobj(marker)) -- false