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.

Comments

  • jeanfabre
    Options
    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,

    Jean
  • Nate77
    Options
    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 ?
  • AKostusev
    Options
    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 work
  • AKostusev
    Options
    As workaround - set all needed PhotonServerSettings at runtime:
    PhotonNetwork.PhotonServerSettings.AppSettings.AppIdRealtime = _photonAppId;