Does others player's PhotonPlayer ID changes if someone leaves the room?
Options
Ruslank
✭
Hello everyone, I have doubts if PhotonPlayer ID of all players wont change, if someone leaves the room.
For example, there were 4 players, with ID's 1,2,3 and 4 in a room. Player with ID 3 left the room. Will player's 4 ID stay 4, or it will change to 3? Thanks a lot!
For example, there were 4 players, with ID's 1,2,3 and 4 in a room. Player with ID 3 left the room. Will player's 4 ID stay 4, or it will change to 3? Thanks a lot!
0
Best Answer
-
Hi @Ruslank,
Thank you for choosing Photon!
I assume by "ID" you mean "Actor Number" which are used interchangeably in PUN 1.
Inside the same room, the actor number is always incremental and will never be recycled or reused.
Also, a player keeps the same Actor Number as long as it stays inside the room.
So in the example you have provided, it will stay 4.5
Answers
-
Hi @Ruslank,
Thank you for choosing Photon!
I assume by "ID" you mean "Actor Number" which are used interchangeably in PUN 1.
Inside the same room, the actor number is always incremental and will never be recycled or reused.
Also, a player keeps the same Actor Number as long as it stays inside the room.
So in the example you have provided, it will stay 4.5