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.
Luau
getrenderproperty(object: DrawingObject, property: string) -> anyParameters
| Parameter | Type | Description |
|---|---|---|
object | DrawingObject | Live DrawingObject to inspect. |
property | string | Property name such as Radius, Visible, or Color. |
Returns
anyThe 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
Luau
local circle = Drawing.new("Circle")
circle.Radius = 24
print(getrenderproperty(circle, "Radius")) -- 24
circle:Remove()