setrenderproperty
Sets a Drawing property by name.
Syntax
setrenderproperty(drawing: DrawingObject, property: string, value: any) -> ()
Also available as
set_render_property
Parameters
| Parameter | Type | Description |
|---|---|---|
drawing | DrawingObject | Live drawing handle. |
property | string | Case-sensitive property name. |
value | any | Value of the property’s expected type. |
Description
This is the explicit-function form of drawing[property] = value. It accepts only supported properties for that primitive. Unknown properties, removed handles and incorrect value types or attempts to write read-only properties raise errors.
Example
local line = Drawing.new("Line")
setrenderproperty(line, "Thickness", 2)
line:Remove()
These are Game executor contracts. Check build requirements and session lifetimes before using them.
