> ## Documentation Index
> Fetch the complete documentation index at: https://docsuncv2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# setrenderproperty

Sets a property on a drawing object.

```luau theme={null}
setrenderproperty(drawing: DrawingObject, property: string, value: any): ()
```

This is the function form of assigning the property (`drawing.Radius = 50`). Handy when the property name is dynamic.

## Parameters

| Parameter  | Type            | Description                                        |
| ---------- | --------------- | -------------------------------------------------- |
| `drawing`  | `DrawingObject` | The drawing to change.                             |
| `property` | `string`        | The property name, like `"Position"` or `"Color"`. |
| `value`    | `any`           | The new value. Use the type that property expects. |

## Returns

<code title="the function does not return a value.">void</code>

## Example

<CodeGroup>
  ```luau Example 1 theme={null}
  <<<<<<< HEAD
  setrenderproperty(Drawing.new("Line"), "Visible", true)
  =======
  -- setrenderproperty(drawing: DrawingObject, property: string, value: any): ()
  >>>>>>> 50e30f53759b0538759af25c9b271514aa2c9290
  ```

  ```luau Example 2 theme={null}
  local text = Drawing.new("Text")
  setrenderproperty(text, "Text", "Hello, World!")
  setrenderproperty(text, "Size", 24)
  setrenderproperty(text, "Position", Vector2.new(100, 100))
  setrenderproperty(text, "Visible", true)
  ```
</CodeGroup>

<Tip>
  Setting properties dynamically is useful for real-time overlay drawing.
</Tip>
