> ## 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 очищается. Существующие Lua references на очищенные Drawing objects могут оставаться, но objects больше не считаются active Drawing objects. the Drawing API регистрирует эту API только когда the required rendering environment is active имеет значение true; если эта проверка 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>
