Can't Find Appropriate Namespace for PhotonNetwork

Options
Hello. I'm just starting with PUN, been working in Unity for about 3 years.

I picked up the tutorial here: https://doc.photonengine.com/en-us/pun/v1/demos-and-tutorials/pun-basics-tutorial/lobby, and right off the bat I'm having trouble finding variables. I'm using Unity 2018 3.0 and have downloaded PUN v 1.93 from Unity Asset Store.

I'm having trouble with step 5... writing the Launcher practice code. I copied and pasted it from the website to verify it was not a mistake on my end (typos).

5) PhotonNetwork.autoJoinLobby = false; // PhotonNetwork does not exist in this current context.

So I did some searching and added
Using Photon.Pun;

which only fixes PhotonNetwork. Now the same line.
5) PhotonNetwork.autoJoinLobby = false; // autoJoinLobby does not exist in this current context.

Am I using a version of Unity that is not supported? (PUN claims 5.3.7 or higher)? I'm not sure where to go from here besides seek a different engine.

Comments

  • Ah... Figured it out. I was looking at Photon Version 1 Documentation... Not Version 2.