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.

[Photon 2 - Pun 2] Help fix bug: item disappears in player 1's scene but player 2's scene doesn't

Discussion in 'Multiplayer' started by duyphat2003, Oct 12, 2022.

  1. duyphat2003

    duyphat2003

    Joined:
    Oct 12, 2022
    Posts:
    1
    I'm having a problem where player 1 completes room creation it succeeds and the scene is loaded, and so does player 2, player 2 comes in and can see player 1, but the problem is player 1 picks up an object item, the item disappears player 1's scene, but player 2's scene still sees the item not disappearing but still there. I don't know how to fix player 2 seeing the item disappear. NPC too, player 1 finished loading the scene and saw NPC walk over but player 2 saw NPC didn't step over.
    Like both scenes load separately. Please someone help me solve this problem!
     
    Last edited: Oct 12, 2022
  2. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    2,957
    Not all objects are automatically synchronized. PUN uses the PhotonView component to identify and sync objects via the network. Anything else one player does, will only happen on one client.