Function: worldEntryChanged()
function worldEntryChanged(previous:
| WorldPlane
| WorldMesh
| WorldAnchor, next:
| WorldPlane
| WorldMesh
| WorldAnchor): boolean;
Defined in: webxr-environment/src/world-sensing.ts:192
Has this entry changed since the last one with the same id?
changedAt is the host's own counter (WebXR's lastChangedTime), and when
both sides have one it is the whole answer - which matters for meshes, where
the alternative is comparing two megabytes of vertices every frame to learn
that a wall is still a wall. Without it, the fields that describe WHERE the
thing is are compared and the buffers are compared by identity.
Parameters
| Parameter | Type |
|---|---|
previous | | WorldPlane | WorldMesh | WorldAnchor |
next | | WorldPlane | WorldMesh | WorldAnchor |
Returns
boolean