Skip to content

INVALID_ENTITY

const INVALID_ENTITY: number

Defined in: types.ts:70

JS-side invalid-entity sentinel.

NOTE: this is 0 for legacy serialization compatibility — scenes written before this packing was documented use 0 to mean “no entity reference”. C++ uses 0xFFFFFFFF as its sentinel; producers/consumers at the WASM boundary must translate between the two. New code should prefer isValidEntity() over comparing against this constant directly.