PhotonServerSettings.asset resets on GitHub commit
Options
Every time we push updates on our GitHub repository the Photon ServerSettings.asset gets reset.
In our .gitignore we included
{Projektname}/Assets/Photon/PhotonUnityNetworking/Resources/PhotonServerSettings.asset
but this is also not helping out.
So currently we need to set the AppID by hand or discard the change of the PhotonServerSettings.asset with for example GitKraken or GitDesktop every time we pull the repository.
In our .gitignore we included
{Projektname}/Assets/Photon/PhotonUnityNetworking/Resources/PhotonServerSettings.asset
but this is also not helping out.
So currently we need to set the AppID by hand or discard the change of the PhotonServerSettings.asset with for example GitKraken or GitDesktop every time we pull the repository.
1
Comments
-
Hi,
- PhotonServerSettings should not be ignored in the repository.
- Can you try to delete the related meta data for the PhotonServerSettings and see if it works then.
Bye,
Jean0 -
We've actually been having the same issue for the last few weeks. Thinking it might be something with the Asset Pipeline 2. Did you happen to find a workaround @WurstOnAir ?0
-
The same for me. Sometimes when unity opens project - file PhotonServerSettings is reseting to default.
Because of this, builds from our CI periodically do not work1 -
As workaround - set all needed PhotonServerSettings at runtime:
PhotonNetwork.PhotonServerSettings.AppSettings.AppIdRealtime = _photonAppId;
0