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

RelevanceTrait

const RelevanceTrait: AuthorityOnlyTrait<Trait<{ relevance: Relevance; }>>

An entity’s relevance, which a prefab’s or a spawn’s relevance sets and setTrait changes at run time, as a flag picked up or a boss whose fight starts. An entity without it is Relevance.Nearby. Kept on the room alone.