get photonplayer by id?

as topic says, is there a function inside PUN to get the photonplayer by id?

i need to sync stuff when a player joins the game. So when he joins the game he should get the status of other players. Can i use ID for that?

thanks

Comments

  • You don't need to use the ID for that, you would use the PhotonPlayer instance itself as thats what you pass to RPCs anyway. PhotonNetwork has an array with all currently connected players that you can use for example.