Need help with tilemaps in Photon Fusion 2

Hello! I want to make a 2d game with tilemaps using Photon Fusion 2.
I have made a quick test with friends and everything works except for edtiting/changing the tilemaps in runtime. I’m still very early in development so I don’t really care if I have to rewrite anything as I’ve already tried some, probably very bad, ideas for how to change tilemaps but can’t figure anything out.

I don’t really care how complicated or weird the sollution is as long as it works, I can even stop using tilemaps and instead try something with normal gameobjects.

I have struggled with this for hours now and just want to keep working on the other parts of the game.
I even asked ChatGPT to no avail. Please help.

Hi,

If you want the tilemaps to be modifiable at runtime you need a way to synchronize them and represent them as data. One way would be that have a NetworkArray (or something like that) where each entry in the array represents an Id mapping to a certain type of tile (you could also use an enum). You can use the OnChangedRender attribute to listen to changes to that array and then adjust your tiles accordingly based on the data.