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

> 첫 번째 인수를 지정한 property key로 인덱싱한 결과를 반환합니다. Drawing object의 경우 object[property]와 같은 Drawing property lookup를 사용하므로 unknown properties와 destroyed Drawing objects는 nil을 반환합니다. the Drawing API는 the required rendering environment is active가 true일 때만 이 API를 등록합니다. 이 검사가 false이면 initializer는 이러한 globals를 만들기 전에 반환됩니다.

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

  ## 인수

  <ParamField path={"object"} type={"any"} required>
    인덱싱할 값입니다. Drawing object에서는 RealDrawingObject \_\_index handler가 사용됩니다.
  </ParamField>

  <ParamField path={"property"} type={"any"} required>
    인덱싱에 사용되는 property key입니다. Drawing object properties는 strings 기반입니다.
  </ParamField>

  ## 반환값

  <ResponseField name={"propertyValue"} type={"any"}>
    object를 property로 인덱싱해 반환된 값 또는 Drawing \_\_index handler에 해당 property 값이 없을 때 nil입니다.
  </ResponseField>

  ## 예제

  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>
