Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

spawnPacked

spawnPacked(authority, packed, spawnPackedOptions?): Entity[]

Spawns a copy of each entity packed holds, in its order, on the world authority decides for, and returns them in that order. An entity field that named an entity inside the pack names its copy; one that named an entity outside keeps it, and reads null where that entity is gone. A copy keeps the scene place its entity was packed with, so the scene’s <Entity> there takes it up, on the room, alone and on every page; where a live entity holds that place, a development world throws, naming it, and scenePlaces: false spawns a clone with none.

Parameter Type
authority Authority
packed PackedEntities
spawnPackedOptions SpawnPackedOptions

Entity[]