SOLVED: PUN 2 PhotonServerSettings not discovered in build
Options
Berhune
✭
I upgraded to PUN 2, and everything appears to be working in the Unity editor.
When making a build, however, my console reports:
"Can't connect: Loading settings failed. ServerSettings asset must be in any 'Resources' folder as: PhotonServerSettings"
My project uses the default installation location for the PhotonServerSettings, which is located at Assets / Photon / PhotonUnityNetworking / Resources / PhotonServerSettings. I've double checked the name of the file and tried moving it to a different Resources folder (such as Assets / Resources).
Why might PhotonServerSettings not be included / discoverable in a build?
EDIT: SOLVED: I was reassigning PhotonServerSettings in one of my own scripts that was only running in a build.
When making a build, however, my console reports:
"Can't connect: Loading settings failed. ServerSettings asset must be in any 'Resources' folder as: PhotonServerSettings"
My project uses the default installation location for the PhotonServerSettings, which is located at Assets / Photon / PhotonUnityNetworking / Resources / PhotonServerSettings. I've double checked the name of the file and tried moving it to a different Resources folder (such as Assets / Resources).
Why might PhotonServerSettings not be included / discoverable in a build?
EDIT: SOLVED: I was reassigning PhotonServerSettings in one of my own scripts that was only running in a build.
0