getrenderproperty Synchronous

Read a drawing property when its name comes from data rather than fixed code. This is useful for a settings inspector or a small editor that displays several kinds of drawings.

Syntax
Luau
getrenderproperty(object: DrawingObject, property: string) -> any

Parameters

Function parameters
ParameterTypeDescription
objectDrawingObjectLive DrawingObject to inspect.
propertystringProperty name such as Radius, Visible, or Color.

Returns

any

The current stored value in that property’s type.

Usage notes

Only data properties are accepted; Remove and Create are methods, not readable properties here. Unknown names and removed objects raise errors.

For Text, Centered and Outlined are accepted aliases of Center and Outline.

Differences from sUNC

sUNC describes this as equivalent to object[property]. Kawaii’s helper only reads data properties: method names such as Remove or Create are rejected.

The helper rejects removed drawings. Directly reading object.__OBJECT_EXISTS can still return false after removal.

Example

Example
Luau
local circle = Drawing.new("Circle")
circle.Radius = 24
print(getrenderproperty(circle, "Radius")) -- 24
circle:Remove()
Kawaii documentation