setrenderproperty Synchronous
Change a drawing property using a string name. It uses the same assignment rules as object[property] = value, so it is useful for applying settings selected at runtime. Use the matching property type when applying a settings table. Read-only values such as TextBounds cannot be assigned through this helper.
Luau
setrenderproperty(object: DrawingObject, property: string, value: any) -> ()Parameters
| Parameter | Type | Description |
|---|---|---|
object | DrawingObject | An existing drawing object to update. |
property | string | Writable property supported by this drawing kind. |
value | any | New value of the property’s declared type. |
Returns
()This function returns no values.
Usage notes
Unknown names, read-only properties, removed objects, and incorrect value types raise errors. Assign booleans to Visible and Filled, Vector2 values to positions, and Color3 values to colors.
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)