followStreamedEntity
followStreamedEntity(
world,path,bind):Disposer
Defined in: packages/engine/src/gameplay/replication/scene.ts:11
Hands bind the streamed entity at path in the scene: at once where
the stream has spawned it, else when it does, and null when the stream
removes it. Marks it while bound, so Replicas leaves it to the scene.
The return lets it go.
ponytail: one subscription per Entity on each trait, as Entity’s own
death watch; a lookup by id in the apply when a room’s scene is large.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
path |
string |
bind |
(entity) => void |