CoherenceClientConnectionManager
Eases access to client connections. Used by CoherenceBridge and CoherenceSceneManager.
Properties
ClientConnectionCount | Returns the number of active client connections, including the local connection. |
Methods
Get | Client connection associated with a given |
GetAll | Collection of all client connections (both simulator and regular clients), including the local connection. |
GetAllClients | Collection of all client connections (with no simulators), including the local connection. |
GetAllSimulators | Collection of all simulator connections, including the local connection. |
GetMine | Client connection associated with the current client. |
GetOther | Collection of all client connections (both simulator and clients), except for the local one. |
GetOtherClients | Collection of all client connections except for the local one. |
GetOtherSimulators | Returns a collection of all simulator connections, except for the local one. |
GetPrefab | Gets a client connection prefab, as set on the associated CoherenceBridge. |
GetSimulator | Client connection associated with a simulator. |
SendMessage | Sends a client message to the connection whose ClientId matches the |
SendMessageToAll | Sends a client message to every connection (both clients and simulators). |
SendMessageToAllClients | Sends a client message to every client connection. |
SendMessageToAllSimulators | Sends a client message to every simulator connection. |
Events
OnCreated | Called when a new CoherenceClientConnection is synced, including the local connection. |
OnDestroyed | Called when an existing CoherenceClientConnection is destroyed, including the local connection. |
OnSynced | Called when all connections present at the moment of joining the session get synced. |
ProvidePrefab | Called before creating the CoherenceClientConnection. Allows for providing custom prefabs to be used as CoherenceClientConnection. Takes precedence over the ClientConnectionEntry. If no provider was subscribed, or if provider returns null, ClientConnectionEntry is used. |