getrenderproperty

Reads a Drawing property.

Syntax

Signature
getrenderproperty(Object: DrawingObject, Name: string) -> any

Aliases

This function has no aliases.

Parameters

ParameterTypeDescription
ObjectDrawingObjectNative Drawing userdata.
NamestringProperty to read.

Returns

TypeDescription
anyProperty value, or nil for an unknown name.

Notes

Reads a native Drawing property using the same lookup as Object[Name]. Unknown property names return nil. Removed objects can still be inspected.

Example

Luau
local Line = Drawing.new("Line")
print(getrenderproperty(Line, "Visible"))
Line:Remove()