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

findEntityByPersistentId

findEntityByPersistentId(world, id): Entity | null

The member of world’s per-entity saves under its persistent id, or null where none is: what a record that names another by id restores it with. readPersistentId reads the id.

Parameter Type
world World
id string

Entity | null