Search Unity

Third Party How to use Photon to sync Tilemaps between players?

Discussion in 'Multiplayer' started by TigerMister, Aug 16, 2019.

  1. TigerMister

    TigerMister

    Joined:
    Mar 16, 2017
    Posts:
    3
    I have had some issues for quite a while now, trying to figure out how to synchronize a tilemap between multiple players in a Photon network, since there is no way to get the individual tiles as objects or some sort of list. Tilemaps seems very restricted and the amount of documentation is very restricted, especially with Photon. Does anyone have any experience with that matter or at least with Photon at all? I'm kind of a newbie with it, so forgive me, if I don't immediately get it.
     
  2. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    3,070
    Do you have a runtime map editor?
    Or are they generated? Then have a look at the "DemoProcedural" folder content in PUN 2.
    If you just need to sync which tilemap to load from the assets, you could use custom properties for the room or have a scene per map, etc.
    Overall, the doc page about "Synchronization and State" may help, too.