Function: checkChildrenDidChange()
> checkChildrenDidChange(container, previousData): boolean
Defined in: node_modules/pixi.js/lib/scene/container/utils/checkChildrenDidChange.d.ts:18
Internal
This function will crawl through the container essentially check if the children have changed.
This function checkChildrenDidChange recursively checks if any child in a Container or its children has changed. It does this by comparing a generated changeId for each child against a stored value in previousData. The changeId is a combination of the child's uid and _didChangeId, bitwise manipulated for uniqueness. If a change is detected, it updates previousData and sets didChange to true. The function returns a boolean indicating if any change was detected in the entire hierarchy of children.
Parameters
container
the container to check for changes
previousData
the previous data from the last check made
data
number[]
the data array
didChange
boolean
did the data change
index
number
the index of the data array
Returns
boolean