expandInstance
此内容尚不支持你的语言。
expandInstance(
prefab,delta,allocateId,loadPrefab?):object
Defined in: prefab/sceneInstance.ts:89
Expand a prefab asset + instance delta into flat instance entities, allocating
ids via allocateId. Reuses flattenPrefab (which applies the overrides),
drops removed prefab entities, and appends added entities re-linked by
their stable parent id. loadPrefab resolves nested prefab refs (callers that
know the prefab is flat may omit it).
Parameters
Section titled “Parameters”prefab
Section titled “prefab”allocateId
Section titled “allocateId”() => number
loadPrefab?
Section titled “loadPrefab?”SyncPrefabResolver = NO_NESTED
Returns
Section titled “Returns”object
entities
Section titled “entities”entities:
ProcessedEntity[]
rootId
Section titled “rootId”rootId:
number