Table of Contents

CoherenceLiveQuery

class in Coherence.Toolkit
inherits from CoherenceQuery

Filters what entities are replicated, based on position.

Remarks

This component is required for entities to get replicated.

When the UnityEngine.GameObject moves, the associated CoherenceLiveQuery moves accordingly.

Using a live query is a great optimization if there's lots of entities, but only the few contained within the live query area are relevant.

Properties
DistanceUpdateThreshold

Distance since last update at which an update on the live query is triggered.

Extent

Defines the active area of the live query.

ExtentUpdateThreshold

Magnitude difference at which to trigger an update on the live query.

NeedsUpdate
radius

Defines the active area of the live query.

Methods
CreateQuery
OnFloatingOriginShifted
Reset

Resets values to defaults.

UpdateQuery