This class wraps the AppSettings into a scriptable object and adds a few Quantum connection related configurations. Connect to specific region cloud: UseNameSever = true, FixedRegion = "us", Server = "" Connect to best region: UseNameSever = true, FixedRegion = "", Server = "" Connect to (local) master server: UseNameSever = false, FixedRegion = "", Server = "10.0.0.0.", Port = 5055 Connect to (local) name server: UseNameSever = true, FixedRegion = "", Server = "10.0.0.0.", Port = 5058
More...
|
AppSettings | AppSettings |
| Photon AppSettings is serialized on this class. More...
|
|
string | BestRegionSummaryKey = "Quantum.BestRegionSummary" |
| Best region summary key used to store ping results in PlayerPrefs. More...
|
|
bool | CanRejoin => PlayerTtlInSeconds > 0 |
| Rejoining rooms (after the 10 second default timeout) is only possible when PlayerTTL > 0. More...
|
|
int | EmptyRoomTtlInSeconds = 0 |
| EmptyRoomTTL used when opening rooms. More...
|
|
bool | EnableCrc |
| Enable CRC for Photon networking to detect corrupted packages. Building the checksum with Photon.Client.PhotonPeer.CrcEnabled has a low processing overhead but increases integrity of sent and received data. This option could reduce client disconnects based on input corruption errors for example. More...
|
|
int | PlayerTtlInSeconds = 0 |
| PlayerTTL used when opening rooms. More...
|
|
|
const string | DefaultPath = "Assets/QuantumUser/Resources/PhotonServerSettings.asset" |
| The default asset path to search or create a default server settings asset. More...
|
|
This class wraps the AppSettings into a scriptable object and adds a few Quantum connection related configurations. Connect to specific region cloud: UseNameSever = true, FixedRegion = "us", Server = "" Connect to best region: UseNameSever = true, FixedRegion = "", Server = "" Connect to (local) master server: UseNameSever = false, FixedRegion = "", Server = "10.0.0.0.", Port = 5055 Connect to (local) name server: UseNameSever = true, FixedRegion = "", Server = "10.0.0.0.", Port = 5058
◆ CloneAppSettings()
Obsolete: use new AppSettings(appsSettings)
◆ DefaultPath
const string Quantum.PhotonServerSettings.DefaultPath = "Assets/QuantumUser/Resources/PhotonServerSettings.asset" |
|
static |
The default asset path to search or create a default server settings asset.
◆ AppSettings
AppSettings Quantum.PhotonServerSettings.AppSettings |
Photon AppSettings is serialized on this class.
◆ PlayerTtlInSeconds
int Quantum.PhotonServerSettings.PlayerTtlInSeconds = 0 |
PlayerTTL used when opening rooms.
◆ EmptyRoomTtlInSeconds
int Quantum.PhotonServerSettings.EmptyRoomTtlInSeconds = 0 |
EmptyRoomTTL used when opening rooms.
◆ EnableCrc
bool Quantum.PhotonServerSettings.EnableCrc |
Enable CRC for Photon networking to detect corrupted packages. Building the checksum with Photon.Client.PhotonPeer.CrcEnabled has a low processing overhead but increases integrity of sent and received data. This option could reduce client disconnects based on input corruption errors for example.
◆ BestRegionSummaryKey
string Quantum.PhotonServerSettings.BestRegionSummaryKey = "Quantum.BestRegionSummary" |
Best region summary key used to store ping results in PlayerPrefs.
◆ CanRejoin
Rejoining rooms (after the 10 second default timeout) is only possible when PlayerTTL > 0.
◆ BestRegionSummary
string? Quantum.PhotonServerSettings.BestRegionSummary |
|
getset |
Access best region summary in PlayerPrefs.