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

# cleardrawcache

> Real global Drawing object list をクリアします。追跡中の各 Drawing object は destroyed としてマークされ、存在する image resources は解放され、object list は空になります。クリアされた Drawing objects への既存の Lua references は残る場合がありますが、それらの objects は active Drawing objects とは見なされなくなります。 the Drawing API は the required rendering environment is active が true の場合だけこの API を登録します。このチェックが false の場合、initializer はこれらの globals を作成する前に戻ります。

<div className="real-function-page">
  ```lua theme={null}
  cleardrawcache()
  ```

  ## 例

  Clear every Drawing object currently tracked by Real.

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

  cleardrawcache()
  print(square.Visible)
  ```
</div>
