getrenderproperty
Reads a Drawing property.
Syntax
Signature
getrenderproperty(Object: DrawingObject, Name: string) -> anyAliases
This function has no aliases.
Parameters
| Parameter | Type | Description |
|---|---|---|
Object | DrawingObject | Native Drawing userdata. |
Name | string | Property to read. |
Returns
| Type | Description |
|---|---|
any | Property 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()