Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Help with photon 2

Discussion in 'Scripting' started by S4MA3L, Jul 15, 2020.

  1. S4MA3L

    S4MA3L

    Joined:
    Apr 17, 2020
    Posts:
    38
    I am using photon 2 to create a multiplayer game. And I already created the matching and room functionalities. I wanted to know if there is any way players can get their custom prefab instantiated (with custom toys and stuff they achieved from player store menu.) to the room.
    If I can store the custom properties to a playerpref, can I access them during a photon session?
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,889
    You can do whatever you want during a photon session. The trick will be that you need to communicate all of this custom stuff to all the other players in the room too so they can draw it properly. Consider looking into a photon RPC for this.
     
  3. S4MA3L

    S4MA3L

    Joined:
    Apr 17, 2020
    Posts:
    38
    Thank you.