setrenderproperty
Changes a Drawing property.
Syntax
Signature
setrenderproperty(Object: DrawingObject, Name: string, Value: any) -> ()Aliases
This function has no aliases.
Parameters
| Parameter | Type | Description |
|---|---|---|
Object | DrawingObject | Live native Drawing userdata. |
Name | string | Writable property name. |
Value | any | Value with the type required by that property. |
Returns
| Type | Description |
|---|---|
() | None. |
Notes
Writes a native Drawing property using the same validation as Object[Name] = Value. Unknown or readonly properties, invalid values, and removed objects raise errors.
Example
Luau
local Text = Drawing.new("Text")
setrenderproperty(Text, "Text", "Hello")
Text:Remove()