VINDICTA.TOP
Rendering · Function
Bunni.fun
ChocoSploit
Cryptic
Potassium
Seliware
SirHurt
Solara
Velocity
Volcano
Volt
Wave
Xeno

getrenderproperty

Dynamically get a named property from a Drawing object.

function getrenderproperty(drawingdrawingDrawingA valid Drawing object.: Drawing, propertypropertystringThe name of the property to retrieve.: string): anyanyThe current value of the specified Drawing property.

Usage

Read Circle properties dynamically
local circle = Drawing.new("Circle")
circle.Radius  = 50
circle.Visible = true

print(getrenderproperty(circle, "Radius"))   -- 50
print(getrenderproperty(circle, "Visible"))  -- true