Table of Contents

Class CoherenceQuery

Namespace
Coherence.Toolkit
Assembly
Coherence.Toolkit.dll
[NonBindable]
public abstract class CoherenceQuery : CoherenceBehaviour
Inheritance
CoherenceQuery
Derived
Inherited Members

Constructors

CoherenceQuery()

protected CoherenceQuery()

Fields

bridge

protected CoherenceBridge bridge

Field Value

CoherenceBridge

Properties

Client

protected IClient Client { get; }

Property Value

IClient

EntityID

public Entity EntityID { get; protected set; }

Property Value

Entity

Logger

protected Logger Logger { get; }

Property Value

Logger

Methods

CreateQuery()

protected abstract void CreateQuery()

Initialize()

protected virtual void Initialize()

NeedsUpdate()

protected abstract bool NeedsUpdate()

Returns

bool

OnDestroy()

protected virtual void OnDestroy()

OnFloatingOriginShifted(FloatingOriginShiftArgs)

protected virtual void OnFloatingOriginShifted(FloatingOriginShiftArgs args)

Parameters

args FloatingOriginShiftArgs

UpdateQuery(bool)

protected abstract void UpdateQuery(bool queryActive = true)

Parameters

queryActive bool

Events

BridgeResolve

Called by the Entity/Component to find the correct CoherenceBridge instance. The order of CoherenceBridge resolution is as follows:

* CoherenceBridge provided by the per-instance CoherenceBridgeResolver<T> callback

* CoherenceBridge provided by the global BridgeResolve callback

* CoherenceBridge within the same scene as this Entity/Component

* CoherenceBridge with a CoherenceBridge.IsSingleton checked

* Creating new CoherenceBridge instance

public event CoherenceBridgeResolver<CoherenceQuery> BridgeResolve

Event Type

CoherenceBridgeResolver<CoherenceQuery>