The 2D layer · function
diffTree
Compare the tree against last frame and mark what changed.
Explained in Sprites and tilemaps.
function diffTree(tracker: DirtyTracker, root: UiNode): booleanimport { diffTree } from '@driftengine/ui2d';Parameters
| Parameter | Type | Description |
|---|---|---|
tracker | DirtyTracker | |
root | UiNode |
In depth
Walks hidden nodes too, because a node that just became hidden is exactly the one whose previous rectangle has to be marked.