VINDICTA
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(drawing: Drawing, property: string): any

Synopsis

How it works

Reads a render property from a Drawing object or Roblox Instance by direct struct field access. For Drawing objects, this reads from the internal C++ render data struct (position, size, color, transparency, thickness, font, etc.). The property name is hashed and looked up in the object's property table.

Drawing properties

Each Drawing type exposes different renderable properties:
TypeProperties
LineFrom, To, Color, Thickness, Transparency, Visible
TextPosition, Text, Size, Color, Center, Outline, OutlineColor, Font, Transparency, Visible
CirclePosition, Radius, Color, Thickness, Filled, NumSides, Transparency, Visible
SquarePosition, Size, Color, Thickness, Filled, Transparency, Visible
ImagePosition, Size, Data, Color, Transparency, Rounding, Visible

Usage

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

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

Parameters

drawing Drawing
A valid Drawing object.
property string
The name of the property to retrieve.

Returns

any The current value of the specified Drawing property.