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

useEntityRef

useEntityRef(entity): (object) => void

A ref callback that holds a view’s object as its entity’s placement, its RefTrait, while it is mounted: what the camera follows and the devtools pick. A presentation verb: a room’s world, which draws nothing, refuses it as the object attaches, throwing in development and logging once in a deployed room.

Parameter Type
entity Entity

(object) => void