setrenderproperty Synchronous
Assign a drawing property by name. Use it when a control or configuration record decides which property to change at runtime.
Luau
setrenderproperty(object: DrawingObject, property: string, value: any) -> ()Parameters
| Parameter | Type | Description |
|---|---|---|
object | DrawingObject | Live DrawingObject to change. |
property | string | Writable property supported by this drawing kind. |
value | any | New 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
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)