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

# setrenderproperty

> Assigns value to object[property]. For Drawing object, this uses the same Drawing property assignment as direct property assignment. Unknown Drawing properties are ignored, and destroyed Drawing objects are not changed. The third argument must be present. the Drawing API registers this API only when the required rendering environment is active is true; when that check is false, the initializer returns before creating these globals.

<div className="real-function-page">
  ```lua theme={null}
  setrenderproperty(object: any, property: any, value: any)
  ```

  ## Arguments

  <ParamField path={"object"} type={"any"} required>
    Value to index and assign into. With a Drawing object, the RealDrawingObject \_\_newindex handler is used.
  </ParamField>

  <ParamField path={"property"} type={"any"} required>
    Property key used for assignment. Drawing object properties are string-based.
  </ParamField>

  <ParamField path={"value"} type={"any"} required>
    Value assigned to object\[property]. The argument must be supplied; nil is still a supplied value.
  </ParamField>

  ## Example

  Assign a Drawing property like direct property assignment.

  ```lua theme={null}
  local line = Drawing.new("Line")
  setrenderproperty(line, "Thickness", 3)
  setrenderproperty(line, "Visible", true)

  print(line.Thickness)
  print(line.Visible)
  ```
</div>
