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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question How to sync local list in Netcode for gameobject?

Discussion in 'Multiplayer' started by frankiwinnie, May 18, 2023.

  1. frankiwinnie


    Dec 1, 2020
    Hello everyone,

    I am trying to synconrinize a local list called cardDeck in two different sessions. The list has all same amount of cards and cards are the same. So when a card has been dealt to a player in one session the card has to be removed from the list in the local player and then the card dealt has to be removed also from the list in other session. I tried to make it with rpc's, tried to access to index with network variable. I came close to achieve however still could not manage to clearly solve the way to do. Could someone please help me on that?