Search Unity

How to synchronize a 2D world across clients?

Discussion in 'Multiplayer' started by Epic-Username, Sep 25, 2017.

  1. Epic-Username

    Epic-Username

    Joined:
    May 24, 2015
    Posts:
    339
    So i have a 2D world stored into a 2 dimensional GameObject array (about 10000 elements) within a script on the server, but i cant think of any good ways to synchronize the array over to clients when this map is frequently changing its data, i thought that maybe the clients could request chunks to be loaded into their scene but i don't know how to request data from the server since ClientRpc's and Cmd's can't return anything.
    So does anyone know any good ways to deal with a frequently changing world that needs to by synchronized to clients?