Player custom properties

Hi,im new to developing in games,i have created room and i have tested for other players joining the room too(it works fine),My game is about 3d fighting game,I need help how can i set up Player who creates room as Player1 and player who joins room as Player2 ,how can i mention them in script as P1 and P2 while connecting to internet.


  • Hi @aru,

    Thank you for choosing Photon!

    You could use Player.ActorNumber of make use of PlayerNumbering script.
    Add it to the scene then call player.GetPlayerNumber();
Sign In or Register to comment.