cleardrawcache
Removes every drawing object.
Syntax
cleardrawcache() -> nil
Parameters
This function takes no parameters.
Returns
| Type | Description |
|---|---|
nil | This function does not return a value. |
Description
cleardrawcache is part of the Drawing library. Drawing objects are submitted to the module's overlay renderer. They persist between frames until you remove them or clear the cache.
The change is applied directly to the live target, so later reads observe the updated value.
The aliases clear_draw_cache() resolve to the same implementation.
Example
cleardrawcache()
Notes
- Aliases:
clear_draw_cache(). - Remove drawing objects when they are no longer needed.