Connection Manager
ConnectionManager
The ConnectionManager
addon is in charge to manage the connection launch and spawn the user representation.
It should be added on the same game object of the Runner
. It no runner is found, it will be added on runtime.
The first setting to select is the topology used in the application: it can be Shared mode or Server/Host mode.
You can also select the room selection criterias :
- it can be a simple room name,
- or a list of session properties. Each session property is composed of a
Property Name
andValue
pair.
The number of players allowed to connect when running in Server/Host mode can be limited thanks to the Player Count
value.
Thanks to the INetworkRunnerCallbacks
, the player's prefab is spawned when the user joined the session :
- by the local player in Shared mode,
- by the server in Server/Host mode.
In Server/Host mode, on disconnection, the server has to despawn the player's network object.
Demo
To illustrate the usage, two demo scene can be found in Assets\Photon\FusionAddons\ConnectionManager\Demo\Scenes\
folder :
RoomNameConnection
to show how to establish a connection with a room name,SessionPropertiesConnection
to show how to establish a connection with session properties.
Simply look at theConnectionManager
component on the Runner
game object.
Download
This addon latest version is included into the addon project
Supported topologies
- shared mode
- host mode
Changelog
- Version 1.0.2: Namespace modification
- Version 1.0.1: Add namespace
- Version 1.0.0: First release