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

entity

entity(options?): EntityCommandField & object

Another entity, such as a purchase’s shop: a reader reads it as its own world’s Entity, or Entity | null with { optional: true }. The wire carries the key the stream names it by, and the room reads it back as the reader reaches the command: one gone, or hidden from the sender, refuses the command entity-gone, naming the field. That proves the entity is there, not that she may act on it. As Unity’s NetworkObjectReference and Fusion’s NetworkId.

Parameter Type
options? EntityFieldOptions & object

EntityCommandField & object

entity(options): EntityCommandField & object

Another entity, such as a purchase’s shop: a reader reads it as its own world’s Entity, or Entity | null with { optional: true }. The wire carries the key the stream names it by, and the room reads it back as the reader reaches the command: one gone, or hidden from the sender, refuses the command entity-gone, naming the field. That proves the entity is there, not that she may act on it. As Unity’s NetworkObjectReference and Fusion’s NetworkId.

Parameter Type
options EntityFieldOptions & object

EntityCommandField & object