ReferenceDrawing

setrenderproperty

Sets a Drawing property by name.

Syntax

setrenderproperty(drawing: DrawingObject, property: string, value: any) -> ()

Also available as

set_render_property

Parameters

ParameterTypeDescription
drawingDrawingObjectLive drawing handle.
propertystringCase-sensitive property name.
valueanyValue 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.