Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Question photon, sincronize value for new player in room

Discussion in 'Multiplayer' started by designshake, Jun 16, 2022.

  1. designshake

    designshake

    Joined:
    Oct 22, 2020
    Posts:
    4
    i need some help, I would like something very simple to implement, I can't find anywhere how to send room information to a new player that has joined, example count players, count players ready, scores,..(values that change during the game).

    I wanted a simple explanation of how to implement the moment you are setting information the moment you are receiving the information please, I have been looking for a long time, but nothing is very clear, if you can help me I would be very grateful.
     
  2. toddkc

    toddkc

    Joined:
    Nov 20, 2016
    Posts:
    205
    You should use PUNs RoomProps and PlayerProps for these things. Docs here.
     
  3. designshake

    designshake

    Joined:
    Oct 22, 2020
    Posts:
    4
    thank for this @toddkc, but i'll like if had little exemple, i dont know how to do.
     
  4. toddkc

    toddkc

    Joined:
    Nov 20, 2016
    Posts:
    205
    Hopefully someone else can come along and give you one, I don't have the time sorry. Look up some tutorials and youtube videos, it's not very complicated. Good luck!
     
  5. designshake

    designshake

    Joined:
    Oct 22, 2020
    Posts:
    4
    ok, thanks for you time... im wait and finding resposte.
     
  6. Asinello

    Asinello

    Joined:
    Jan 12, 2021
    Posts:
    1