setrenderproperty
Dynamically set a named property on a Drawing object.
function setrenderproperty(drawing: Drawing, property: string, value: any): ()Synopsis
How it works
Writes a render property on a
Drawing object. The property name is hashed and the value is written directly to the object's internal C++ struct fields. Changes take effect on the nextnext()Table traversal primitive. next(t, key) returns the next key-value pair after key, or nil when done. next(t, nil) returns the first pair. The underlying function used by pairs(). Traversal order is not guaranteed. frame's overlay render pass.
setrenderproperty(espBox, "Color", Color3.fromRGB(255, 0, 0))
setrenderproperty(espBox, "Thickness", 2)
setrenderproperty(espBox, "Visible", true)
Property validation is performed: setting an invalid property name throws, and type mismatches (e.g., string where Color3 is expected) are rejected.Usage
Set Circle properties with dynamic keys
local circle = Drawing.new("Circle")
setrenderproperty(circle, "Radius", 75)
setrenderproperty(circle, "Visible", true)
setrenderproperty(circle, "Color", Color3.fromRGB(255, 0, 0))
print(circle.Radius) "cc">-- 75
print(circle.Visible) "cc">-- trueParameters
drawing Drawing A valid Drawing object.
property string The name of the property to assign.
value any The value to assign to the property.