Static Public Member Functions | |
static void | CreateSession (string sessionID, IProtocolToken token=null, string sceneToLoad=null, IProtocolToken sceneToken=null) |
Creates a Session using the current running Platform. More... | |
static void | JoinRandomSession (IProtocolToken token=null) |
Joins a Session in a random fashion. When not using the UdpKit.UdpSessionFilter, the client will try to enter in any available room. More... | |
static void | JoinRandomSession (UdpSessionFilter sessionFilter, IProtocolToken token=null) |
Joins a Session in a random fashion. In order to filter the rooms the player can join, you can make use of the UdpKit.UdpSessionFilter class and pass custom parameters. More... | |
static void | JoinSession (string sessionID, IProtocolToken token=null) |
Joins a Session by name. More... | |
static void | JoinSession (UdpSession session, IProtocolToken token=null) |
Joins a Session using a UdpSession as reference. More... | |
static void | UpdateSession (IProtocolToken token) |
Updates the current session configuration. The local peer need to be the Server in order to call this method. More... | |
Properties | |
static Dictionary< string, object > | CurrentMetadata [get] |
Expose custom metadata information about the current platform and connection if a remove server. The information retrieved by this call depends on the current active platform and the current internal status of it. More... | |
static UdpSession | CurrentSession [get] |
Gets the current session this peer is connected. More... | |
|
inlinestatic |
Creates a Session using the current running Platform.
sessionID | Session identifier. This value will be public available and can be used by other players to join this specific session. |
token | User custom data. This Token can be used to pass custom data to other players and/or to configure custom properties of the session. More information look at PhotonRoomProperties. |
sceneToLoad | Target Scene to be loaded after the session creation procedure starts. |
sceneToken | IProtocolToken that is passed on the SceneLoad callbacks. |
Example: Creating a session with some custom properties.
|
inlinestatic |
Joins a Session in a random fashion. When not using the UdpKit.UdpSessionFilter, the client will try to enter in any available room.
token |
Example: Joining a Random Session when Bolt is ready.
|
inlinestatic |
Joins a Session in a random fashion. In order to filter the rooms the player can join, you can make use of the UdpKit.UdpSessionFilter class and pass custom parameters.
sessionFilter | Session filter parameters |
token | Join Token |
Example:
|
inlinestatic |
Joins a Session by name.
sessionID | Session name that you want to enter |
token | Connection Token |
Example: Joining a session using the Session identifier.
|
inlinestatic |
Joins a Session using a UdpSession as reference.
session | UdpSession that you want to enter |
token | Connection Token |
Example: Joining a session using a UdpSession.
|
inlinestatic |
Updates the current session configuration. The local peer need to be the Server in order to call this method.
token | Settings Token. This can be any IProtocolToken or a PhotonRoomProperties to setup a Photon Session. |
|
staticget |
Expose custom metadata information about the current platform and connection if a remove server. The information retrieved by this call depends on the current active platform and the current internal status of it.
|
staticget |
Gets the current session this peer is connected.
The current session.