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

# isrenderobj

> 値が Drawing object type を持つ object かどうかを返します。これは methods check のみです。基になる Drawing object がまだ active、tracked、または destroyed かどうかは確認しません。 the Drawing API は the required rendering environment is active が true の場合だけこの API を登録します。このチェックが false の場合、initializer はこれらの globals を作成する前に戻ります。

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

  ## 引数

  <ParamField path={"object"} type={"any"} required>
    テストする値。Drawing object type を持たない non-object values と object は false を返します。
  </ParamField>

  ## 戻り値

  <ResponseField name={"isDrawingObject"} type={"boolean"}>
    値が object で、その methods が RealDrawingObject と一致する場合は True。それ以外は false。
  </ResponseField>

  ## 例

  Check whether a value has Real's Drawing userdata metatable.

  ```lua theme={null}
  local square = Drawing.new("Square")

  print(isrenderobj(square))
  square:Destroy()
  print(isrenderobj(square))
  print(isrenderobj({}))
  ```
</div>
