Interface ICoherenceBridge
- Namespace
- Coherence.Toolkit
- Assembly
- Coherence.Toolkit.dll
public interface ICoherenceBridge
Properties
AuthorityManager AuthorityManager { get; }
Property Value
- AuthorityManager
bool AutoLoginAsGuest { get; }
Property Value
- bool
Property Value
- IClient
CoherenceClientConnectionManager ClientConnections { get; }
Property Value
- CoherenceClientConnectionManager
long ClientFixedSimulationFrame { get; }
Property Value
- long
ClientID ClientID { get; }
Property Value
- ClientID
CloudService CloudService { get; }
Property Value
- CloudService
ConnectionType ConnectionType { get; }
Property Value
- ConnectionType
EntitiesManager EntitiesManager { get; }
Property Value
- EntitiesManager
FixedUpdateInput FixedUpdateInput { get; }
Property Value
- FixedUpdateInput
GameObject GlobalQueryGameObject { get; set; }
Property Value
- GameObject
bool GlobalQueryOn { get; set; }
Property Value
- bool
CoherenceInputManager InputManager { get; }
Property Value
- CoherenceInputManager
Scene? InstantiationScene { get; }
Property Value
- Scene?
bool IsConnected { get; }
Property Value
- bool
bool IsConnecting { get; }
Property Value
- bool
bool IsSimulatorOrHost { get; }
Property Value
- bool
Property Value
- Logger
string NetworkPrefix { get; }
Property Value
- string
INetworkTime NetworkTime { get; }
Property Value
- INetworkTime
double NetworkTimeAsDouble { get; }
Property Value
- double
Action<FloatingOriginShiftArgs> OnAfterFloatingOriginShifted { get; set; }
Property Value
- Action<FloatingOriginShiftArgs>
Property Value
- Scene
Transform Transform { get; }
Property Value
- Transform
UniquenessManager UniquenessManager { get; }
Property Value
- UniquenessManager
Methods
CoherenceSync EntityIdToCoherenceSync(Entity from)
Parameters
from
Entity
Returns
- CoherenceSync
GameObject EntityIdToGameObject(Entity from)
Parameters
from
Entity
Returns
- GameObject
RectTransform EntityIdToRectTransform(Entity from)
Parameters
from
Entity
Returns
- RectTransform
Transform EntityIdToTransform(Entity from)
Parameters
from
Entity
Returns
- Transform
GetClientConnectionEntry()
CoherenceSyncConfig GetClientConnectionEntry()
Returns
- CoherenceSyncConfig
ICoherenceSync GetCoherenceSyncForEntity(Entity id)
Parameters
id
Entity
Returns
- ICoherenceSync
Vector3d GetFloatingOrigin()
Returns
- Vector3d
GetSimulatorConnectionEntry()
CoherenceSyncConfig GetSimulatorConnectionEntry()
Returns
- CoherenceSyncConfig
void OnNetworkEntityCreatedInvoke(NetworkEntityState state)
Parameters
state
NetworkEntityState
void OnNetworkEntityDestroyedInvoke(NetworkEntityState state, DestroyReason destroyReason)
Parameters
state
NetworkEntityState
destroyReason
DestroyReason
bool SetFloatingOrigin(Vector3d newOrigin)
Parameters
newOrigin
Vector3d
Returns
- bool
Coroutine StartCoroutine(IEnumerator routine)
Parameters
routine
IEnumerator
Returns
- Coroutine
bool TranslateFloatingOrigin(Vector3d translation)
Parameters
translation
Vector3d
Returns
- bool
bool TranslateFloatingOrigin(Vector3 translation)
Parameters
translation
Vector3
Returns
- bool
Entity UnityObjectToEntityId(CoherenceSync from)
Parameters
from
CoherenceSync
Returns
- Entity
Entity UnityObjectToEntityId(GameObject from)
Parameters
from
GameObject
Returns
- Entity
Entity UnityObjectToEntityId(Transform from)
Parameters
from
Transform
Returns
- Entity
Events
event Action<ICoherenceBridge> OnConnectedInternal
Event Type
- Action<ICoherenceBridge>
event Action OnFixedNetworkUpdate
Event Type
- Action
event Action OnLateFixedNetworkUpdate
Event Type
- Action
Event Type
- Action