Unique ID

How can i give all the players a unique id like 1,2 or 3 etc.?

Comments

  • Hi @ruse,

    when in a room, a client has a unique number: the Actor Number. You can access it on the local player by using PhotonNetwork.LocalPlayer.ActorNumber.
  • JohnTubeJohnTube mod
    edited December 6
    Hi @ruse,

    Thank you for choosing Photon!

    You could also try "PlayerNumbering" component if you do not want ActorNumber to go beyond MaxPlayers and recycle/rotate/reuse the numbers if you allow players leaving and others joining instead.
Sign In or Register to comment.