setrenderproperty

Changes a Drawing property.

Syntax

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

Aliases

This function has no aliases.

Parameters

ParameterTypeDescription
ObjectDrawingObjectLive native Drawing userdata.
NamestringWritable property name.
ValueanyValue with the type required by that property.

Returns

TypeDescription
()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()