Skip to content

isrenderobj

isrenderobj checks whether a given value is a valid Drawing object.

This is useful for validation in functions or modules that work with custom render systems.

function isrenderobj(object: any): boolean

Parameters

Parameter Description
object The value to check for Drawing validity.

Example

Checking if an object is a render object
1
2
3
4
5
local square = Drawing.new("Square")

print(isrenderobj(square))       -- Output: true
print(isrenderobj(workspace))    -- Output: false
print(isrenderobj("not a draw")) -- Output: false