Skip to content

CacheTreeMode ​

Constants for Node.setCacheAsTree.

ts
import { CacheTreeMode } from "willow";

CacheTreeMode ​

ts
class CacheTreeMode

Cache tree invalidation mode. Controls when a cached subtree is invalidated.

CacheTreeMode: static properties ​

MemberDescription
static readonly MANUAL: intCache invalidates only on explicit invalidateCache() call. Zero overhead on setters. Best for large static tilemaps.
static readonly AUTO: intCache invalidates automatically when any field is written on the cached node or its descendants. Small overhead per setter call (one pointer chase + bool write).