Photon Fusion
2.1.1
Fusion Start Arguments, used to configure the simulation mode and other settings. More...
Public Member Functions | |
| override readonly string | ToString () |
| StartGameArgs ToString(). | |
Public Attributes | |
| NetAddress? | Address |
| Peer Binding Address. | |
| AuthenticationValues | AuthValues |
| Custom Authentication Data. | |
| NetworkProjectConfig | Config |
| Custom NetworkProjectConfig used to start the simulation. | |
| byte[] | ConnectionToken |
| Connection token sent by client to server. Not used in shared mode. | |
| Type[] | CustomCallbackInterfaces |
| User defined callback interfaces we will provide O(1) constant time lookup for. | |
| string | CustomLobbyName |
| Session Custom Lobby to be published in. | |
| FusionAppSettings | CustomPhotonAppSettings |
| Custom Photon Application Settings. | |
| NetAddress? | CustomPublicAddress |
| Custom Public Reflexive Address. | |
| string | CustomSTUNServer |
| Specify a Custom STUN Server used to Resolve the peer Reflexive Addresses It can be used to specify multiple STUN Servers separated by semicolon (;). | |
| bool | DisableNATPunchthrough |
| Flag to disable the NAT Punchthrough implementation and connect only via Relay. | |
| bool? | EnableClientSessionCreation |
| Enables the Session creation when starting a Client with an specific Session Name. | |
| GameMode | GameMode |
| Fusion.GameMode in which this peer will start | |
| Action< NetworkRunner > | HostMigrationResume |
| Callback invoked when the new Host is migrating from the old Host state. | |
| HostMigrationToken | HostMigrationToken |
| Host Migration Token used when restarting the Fusion Simulation. | |
| bool? | IsOpen |
| Session should be created Open or Closed to accept joins. | |
| bool? | IsVisible |
| Session should be Visible or not in the Session Lobby list. | |
| MatchmakingMode? | MatchmakingMode |
| Session Join Matchmaking Mode when joining a Session. | |
| INetworkObjectInitializer | ObjectInitializer |
| See INetworkRunnerUpdater. | |
| INetworkObjectProvider | ObjectProvider |
| Object pool to use. | |
| Action< NetworkRunner > | OnGameStarted |
| Callback that is invoked when the Fusion has fully started. | |
| int? | PlayerCount |
| Number of players allowed to connect to the session. Overrides the value set in the NetworkProjectConfig. The 1-255 range is purely a limit in the NetworkProjectConfig inspector the player count can be set to any positive int value via code. | |
| long | PlayerUniqueId |
| Player Unique ID. | |
| RealtimeClient | RealtimeClient |
| External Realtime Client to be used for communication with the Photon Cloud. | |
| NetworkSceneInfo? | Scene |
| Scene that will be set as the starting Scene. | |
| INetworkSceneManager | SceneManager |
| See INetworkSceneManager. | |
| string | SessionName |
| Photon Cloud Session Name used either to Create or Join a Session. | |
| Func< string > | SessionNameGenerator |
| Used to generate a new Session Name when creating a Session. | |
| Dictionary< string, SessionProperty > | SessionProperties |
| Custom Session Properties. This dictionary can be used to either setup the initial Session Properties when creating a Session but also to set the matchmaking filters when joining a Random Session. | |
| CancellationToken | StartGameCancellationToken |
| Optional CancellationToken used to cancel the NetworkRunner start up process and shutdown. | |
| INetworkRunnerUpdater | Updater |
| See INetworkRunnerUpdater. | |
| bool? | UseCachedRegions |
| Enables the usage of the previous cached regions pings. This speeds up the region ping process and the runner startup process. | |
Fusion Start Arguments, used to configure the simulation mode and other settings.
More about matchmaking: https://doc.photonengine.com/en-us/fusion/current/manual/matchmaking
| NetAddress? Address |
Peer Binding Address.
Default: NetAddress.Any(ushort)
| AuthenticationValues AuthValues |
Custom Authentication Data.
Default: null (default authentication values)
| NetworkProjectConfig Config |
Custom NetworkProjectConfig used to start the simulation.
Default: Global NetworkProjectConfig
More about NetworkProjectConfig: https://doc.photonengine.com/en-us/fusion/current/manual/network-project-config
| byte [] ConnectionToken |
Connection token sent by client to server. Not used in shared mode.
Default: null (empty connection token)
| Type [] CustomCallbackInterfaces |
User defined callback interfaces we will provide O(1) constant time lookup for.
Default: null
| string CustomLobbyName |
Session Custom Lobby to be published in.
Default: null (default Lobby for each Session Type, LobbyClientServer or LobbyShared)
| FusionAppSettings CustomPhotonAppSettings |
Custom Photon Application Settings.
Default: null (Global PhotonAppSettings)
| NetAddress? CustomPublicAddress |
Custom Public Reflexive Address.
Default: null
| string CustomSTUNServer |
Specify a Custom STUN Server used to Resolve the peer Reflexive Addresses It can be used to specify multiple STUN Servers separated by semicolon (;).
Default: null (no custom STUN Server)
| bool DisableNATPunchthrough |
Flag to disable the NAT Punchthrough implementation and connect only via Relay.
Default: false
| bool? EnableClientSessionCreation |
Enables the Session creation when starting a Client with an specific Session Name.
Default: false (clients can not create new Sessions)
| Action<NetworkRunner> HostMigrationResume |
Callback invoked when the new Host is migrating from the old Host state.
Default: null
| HostMigrationToken HostMigrationToken |
Host Migration Token used when restarting the Fusion Simulation.
Default: null
| bool? IsOpen |
Session should be created Open or Closed to accept joins.
Default: true
| bool? IsVisible |
Session should be Visible or not in the Session Lobby list.
Default: true
| MatchmakingMode? MatchmakingMode |
Session Join Matchmaking Mode when joining a Session.
Default: MatchmakingMode.FillRoom
| INetworkObjectProvider ObjectProvider |
Object pool to use.
Default: null
| Action<NetworkRunner> OnGameStarted |
Callback that is invoked when the Fusion has fully started.
Default: null
| int? PlayerCount |
Number of players allowed to connect to the session. Overrides the value set in the NetworkProjectConfig. The 1-255 range is purely a limit in the NetworkProjectConfig inspector the player count can be set to any positive int value via code.
Default: DefaultPlayers from the Global NetworkProjectConfig
| long PlayerUniqueId |
Player Unique ID.
Unique identifier for the player in a Session. Allows the same player to join a Session multiple times with the same PlayerRef.
Default: 0 (empty unique id)
| RealtimeClient RealtimeClient |
External Realtime Client to be used for communication with the Photon Cloud.
Default: null (Fusion will create and handle the client)
| NetworkSceneInfo? Scene |
Scene that will be set as the starting Scene.
Default: null (no scene set)
| INetworkSceneManager SceneManager |
See INetworkSceneManager.
Default: null
More about Scene Loading: https://doc.photonengine.com/en-us/fusion/current/manual/scene-loading
| string SessionName |
Photon Cloud Session Name used either to Create or Join a Session.
Default: null (random session matching)
| Func<string> SessionNameGenerator |
Used to generate a new Session Name when creating a Session.
Default: null (a random session name is generated based on a GUID)
| Dictionary<string, SessionProperty> SessionProperties |
Custom Session Properties. This dictionary can be used to either setup the initial Session Properties when creating a Session but also to set the matchmaking filters when joining a Random Session.
Default: null (empty custom properties)
| CancellationToken StartGameCancellationToken |
Optional CancellationToken used to cancel the NetworkRunner start up process and shutdown.
Defaults: null
| bool? UseCachedRegions |
Enables the usage of the previous cached regions pings. This speeds up the region ping process and the runner startup process.
Defaults: true