error with SetUdpPlatform (unity)
Options
Elias992
✭
in Photon Bolt
Hello, i am new to bolt and am starting up finally.
here in the bolt samples playfabheadlessserver script i get an error when i attemp to set the following:
BoltLauncher.SetUdpPlatform(new PhotonPlatform(new PhotonPlatformConfig()
{
AppId = "",
RegionMaster = "Best Region",
UsePunchThrough = true, // set to false, to disable PunchThrough
MaxConnections = 2
}));
unity gives me the error:
'PhotonPlatformConfig' does not contain a definition for 'RegionMaster'
'PhotonPlatformConfig.MaxConnections' cannot be assigned to -- it is read only
any help appreciated..
here in the bolt samples playfabheadlessserver script i get an error when i attemp to set the following:
BoltLauncher.SetUdpPlatform(new PhotonPlatform(new PhotonPlatformConfig()
{
AppId = "",
RegionMaster = "Best Region",
UsePunchThrough = true, // set to false, to disable PunchThrough
MaxConnections = 2
}));
unity gives me the error:
'PhotonPlatformConfig' does not contain a definition for 'RegionMaster'
'PhotonPlatformConfig.MaxConnections' cannot be assigned to -- it is read only
any help appreciated..
0
Best Answer
-
Hello @Elias992 ,
The PlayFab sample works only on the Bolt SDK 1.2.11.
I'm not sure from which sample do you get this, but some namings have changed:
1. RegionMaster does not exist, it's just Region;
2. MaxConnections was always a read-only field, you can change this property at the Bolt Settings window in the Connection section, in the Limit field.5
Answers
-
Hello @Elias992 ,
The PlayFab sample works only on the Bolt SDK 1.2.11.
I'm not sure from which sample do you get this, but some namings have changed:
1. RegionMaster does not exist, it's just Region;
2. MaxConnections was always a read-only field, you can change this property at the Bolt Settings window in the Connection section, in the Limit field.5