> ## 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.

# getrenderproperty

> Returns the result of indexing the first argument with the given property key. For Drawing object, this uses the same Drawing property lookup as object[property], so unknown properties and destroyed Drawing objects return nil. 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}
  getrenderproperty(object: any, property: any): any
  ```

  ## Arguments

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

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

  ## Returns

  <ResponseField name={"propertyValue"} type={"any"}>
    Value returned by indexing object with property, or nil when the Drawing \_\_index handler has no value for that property.
  </ResponseField>

  ## Example

  Read a Drawing property like direct indexing.

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

  print(getrenderproperty(line, "Thickness"))
  print(getrenderproperty(line, "MissingProperty"))
  ```
</div>
