How to update Unity project from PUN v1 to v2
Options
I'd like to update my current Unity project from PUN to PUN 2. I've tried "updating" PUN from the asset store but that didn't seem to do anything. I then tried just downloading PUN 2 in the asset store and then I got a bunch of errors from PhotonRealtime about how certain type or namespaces couldn't be found. My base problem is that I'm trying to access PhotonNetwork.LocalPlayer (which doesn't seem to be apart of the original PUN?) and after downloading PUN 2, I still can't access it. Is this something I need to change in my Applications on my online Photon account? Any advice is appreciated. Thanks!
0
Comments
-
Was your application working on PUN1?
Here are some migration notes - https://doc.photonengine.com/en-us/pun/current/getting-started/migration-notes
If that member still exists, it is probably PhotonNetwork.localPlayer now.0 -
Hi @zblase,
Thank you for choosing Photon!My base problem is that I'm trying to access PhotonNetwork.LocalPlayer (which doesn't seem to be apart of the original PUN?)As @Spektre mentioned, the answer is in the "Migration Notes" link:PhotonNetwork.player is now PhotonNetwork.LocalPlayerIs this something I need to change in my Applications on my online Photon account?No.0