Unity-Technologies / multiplayer-community-contributions

Community contributions to Unity Multiplayer Networking products and services.
MIT License
452 stars 163 forks source link

PhotonAppSettings Does not exist error CS0103 #83

Closed zeroject closed 3 years ago

zeroject commented 3 years ago

after installing photon transport i get this error image

I have tried to rebuilt the project but i still keep getting this error.

Tobias-EG commented 3 years ago

Which OS and Unity-version is this? Are there any other errors?

JRussas commented 3 years ago

Hi, I'm also seeing this problem. I'm getting it on Windows 10 with version 2021.1.15f1 Personal. There are no other errors that I can see.

JRussas commented 3 years ago

If anyone else sees this. It's an easy fix.

Check your scripting define symbols under Edit->Project Settings->Player. Remove any PUN,PUN2, or PHOTON symbols. In my case PHOTON_UNITY_NETWORKING was causing the wizard not to run from a previous import of the PUN2 asset in the project that was no longer installed.

Tobias-EG commented 3 years ago

JRussas, great find! That's something that escaped our attention. When you delete PUN 2 in-Editor, it was planned to clean up it's defines. Maybe that failed or you deleted it outside.

Thanks for the heads up.

Tobias-EG commented 3 years ago

Closed this, as there is no clear repro (and it seems to work in general).