Scripting API
Scripting API
SceneEntityId
Struct in Abyss.Core.Scenes, from Abyss.Core.
The name a scene file gave this entity, carried in the world so a later save writes it again.
public struct SceneEntityIdRemarks
Without this the id in the file would be useless. An id exists so that something outside a document can point inside it — a scene saying which entity of a prefab it moved. That only works if the id is the same id next time the prefab is written, and the only thing that carries the answer from one save to the next is the world the document was loaded into. An id minted fresh on every capture would dangle every override in every scene that referred to it, silently, the first time anybody re-saved the prefab.
It is the id of whichever document owns the entity, which is not always the one being saved. An entity a prefab supplied carries the id the prefab gave it, because that is what an override has to name; an entity of the scene proper carries the scene's. Both are "the document this entity came out of", which is why it is one component and not two.
One ulong: a field's value travels as a FieldValue, which holds every one of its 64 bits exactly.
Constructors
SceneEntityId
public SceneEntityId(ulong id)Marks an entity with the name its document gave it.
Parameters
id: The document-local identity.
Fields
Id
public ulong IdThe identity, as the document writes it.
