PhotonPlayer not recognized?
Options
Hi,
This might be a stupid question. I'm setting up my script to do something when a player joins the room. I have:
But PhotonPlayer is showing up as not recognized. I've been looking through the docs to figure out what I'm missing but I can't seem to find what I need to 'implement' in order for my game to recognize the PhotonPlayer class. At the top I have
and this has been working for everything so far, but not PhotonPlayer unfortunately Any ideas? Thanks!
This might be a stupid question. I'm setting up my script to do something when a player joins the room. I have:
void OnPhotonPlayerConnected(PhotonPlayer newPlayer) { }
But PhotonPlayer is showing up as not recognized. I've been looking through the docs to figure out what I'm missing but I can't seem to find what I need to 'implement' in order for my game to recognize the PhotonPlayer class. At the top I have
using Photon.Pun; using Photon.Realtime; public class LobbyController : MonoBehaviourPunCallbacks
and this has been working for everything so far, but not PhotonPlayer unfortunately Any ideas? Thanks!
0
Comments
-
Hi @matthewjd24,
PhotonPlayer is from PUN Classic.
It was replaced with Player in PUN 2. (Photon.Realtime namespace: Photon.Realtime.Player)Check the Migration Notes.
0 -
@JohnTube Thank you very much, with your help I got it figured out0