Drawing.isui

Checks whether a retained control is live.

Syntax

Signature
Drawing.isui(Value: any) -> boolean

Aliases

This function has no aliases.

Parameters

ParameterTypeDescription
ValueanyValue to inspect.

Returns

TypeDescription
booleanTrue for a live control in this context.

Notes

Checks whether Value is a live retained control belonging to this UI context. Native Drawing primitives and controls from another context return false.

Example

Luau
local Box = Drawing.create("TextBox")
print(Drawing.isui(Box))
Box:Destroy()