Photon Unity Networking 2: ServerSettings Class Reference

Photon Unity Networking 2

Collection of connection-relevant settings, used internally by PhotonNetwork.ConnectUsingSettings. More...

Inherits ScriptableObject.

Public Member Functions

void UseCloud (string cloudAppid, string code="")
 Sets appid and region code in the AppSettings. Used in Editor. More...
 
override string ToString ()
 String summary of the AppSettings. More...
 

Static Public Member Functions

static bool IsAppId (string val)
 Checks if a string is a Guid by attempting to create one. More...
 
static void ResetBestRegionCodeInPreferences ()
 Sets the "best region summary" in the preferences to null. On next start, the client will ping all available. More...
 

Public Attributes

AppSettings AppSettings
 
bool StartInOfflineMode
 
PunLogLevel PunLogging = PunLogLevel.ErrorsOnly
 
bool EnableSupportLogger
 
bool RunInBackground = true
 
List< string > RpcList = new List<string>()
 

Properties

static string BestRegionSummaryInPreferences [get]
 Gets the "best region summary" from the preferences. More...
 

Detailed Description

Collection of connection-relevant settings, used internally by PhotonNetwork.ConnectUsingSettings.

Includes the AppSettings class from the Realtime APIs plus some other, PUN-relevant, settings.

Member Function Documentation

static bool IsAppId ( string  val)
static

Checks if a string is a Guid by attempting to create one.

Parameters
valThe potential guid to check.
Returns
True if new Guid(val) did not fail.
static void ResetBestRegionCodeInPreferences ( )
static

Sets the "best region summary" in the preferences to null. On next start, the client will ping all available.

override string ToString ( )

String summary of the AppSettings.

void UseCloud ( string  cloudAppid,
string  code = "" 
)

Sets appid and region code in the AppSettings. Used in Editor.

Property Documentation

string BestRegionSummaryInPreferences
staticget

Gets the "best region summary" from the preferences.

The best region code in preferences.

Online Documentation  -  Dashboard  -  Support Forum Exit Games GmbH