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

readPersistentId

readPersistentId(entity): string | null

The id that names entity across restarts: the one a per-entity save of the world, each in worldSaves, keeps it under, or null for an entity no such save keeps, a player’s record’s among them. What a game stores to name another record. A copy of a member holds its source’s id until it is decided, so the ask decides it first. Unity’s GlobalObjectId and Unreal’s GetActorGuid are the editor’s alone, so neither engine has one at run time to follow.

Parameter Type
entity Entity

string | null