跳转到内容

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.