Why do I get 27 errors every time I import the PUN 2 - Free package?

Options

I don't know why but I get 27 errors every time I install this package. I use Unity 2021f. All the error messages are the "The type or namespace name '' could not be found"... Most of the errors are from Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs

Do I need a lower version of my Unity or why do I get these errors?

Answers

  • Tobias
    Options

    We recommend using LTS versions of Unity.

    Some came with a somewhat broken Visual Studio integration and don't generate the projects correctly. Check the Package Manager if there is an update. Re-generate the project files (unity > preferences > regenerate project files) and consider updating to a newer LTS build if necessary.