setrenderproperty Synchronous

Assign a drawing property by name. Use it when a control or configuration record decides which property to change at runtime.

Syntax
Luau
setrenderproperty(object: DrawingObject, property: string, value: any) -> ()

Parameters

Function parameters
ParameterTypeDescription
objectDrawingObjectLive DrawingObject to change.
propertystringWritable property supported by this drawing kind.
valueanyNew value of the type required by that property.

Returns

()

No values.

Usage notes

The same type rules apply as direct property assignment. Unknown or read-only names, removed objects, and wrong value types raise errors.

Transparency uses Kawaii’s opacity scale: 1 is opaque and 0 is invisible.

Differences from sUNC

Transparency follows Kawaii’s opacity scale: 0 is invisible and 1 is fully opaque, opposite to sUNC’s documented scale.

Example

Example
Luau
local circle = Drawing.new("Circle")
setrenderproperty(circle, "Position", Vector2.new(80, 80))
setrenderproperty(circle, "Radius", 24)
setrenderproperty(circle, "Transparency", 1)
setrenderproperty(circle, "Visible", true)
task.delay(5, function() circle:Remove() end)
Kawaii documentation