Difference between PUN classic and PUN2

The whole answer can be found below.

Please note: The Photon forum is closed permanently. After many dedicated years of service we have made the decision to retire our forum and switch to read-only: we've saved the best to last! And we offer you support through these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

Difference between PUN classic and PUN2

Phoenix_Aspect
2021-10-20 10:14:40

Hey, I've been following a tutorial recently that uses PUN classic and I've heard that unity 2020 is not supported by PUN classic. Because of this, I'm using PUN2 instead, but have encountered issues such as 'the name 'PhotonNetwork' does not exist in current context' from exactly following the tutorial. If you could please tell me why this is happening you have my thanks.

Comments

Tobias
2021-10-20 11:24:48

You didn't add using Photon.Pun. Often the IDE will offer you quick fix options, which include "add reference" or similar tasks.

There are Migration Notes on PUN Classic to PUN 2 migration.

Be aware that even PUN 2 is in LTS mode by now. It will be around and supported for quite a while but we encourage everyone to check out Fusion for new projects. It's the way to go.

Back to top