Photon Unity Networking 2 2.45

Public Member Functions | Static Public Member Functions | Public Attributes | Properties | List of all members
ServerSettings Class Reference

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
 
string DevRegion
 Region that will be used by the Editor and Development Builds. This ensures all users will be in the same region for testing. More...
 
PunLogLevel PunLogging = PunLogLevel.ErrorsOnly
 
bool EnableSupportLogger
 
bool RunInBackground = true
 
bool StartInOfflineMode
 
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

◆ IsAppId()

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.

◆ ResetBestRegionCodeInPreferences()

static void ResetBestRegionCodeInPreferences ( )
static

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

◆ ToString()

override string ToString ( )

String summary of the AppSettings.

◆ UseCloud()

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

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

Member Data Documentation

◆ DevRegion

string DevRegion

Region that will be used by the Editor and Development Builds. This ensures all users will be in the same region for testing.

Property Documentation

◆ BestRegionSummaryInPreferences

string BestRegionSummaryInPreferences
staticget

Gets the "best region summary" from the preferences.

The best region code in preferences.