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

hasTrait

hasTrait(entity, trait): boolean

Whether entity holds trait, a predicted or a core trait among them.

Parameter Type
entity Entity
trait Trait | PredictedTrait<any> | CoreTrait<any>

boolean