title: Using Unity and Photon PUN, Is there a way to synchronize alterations to a tilemap changed at runtime with SetTile()?
body: <p>I've been having this issue for a while now and was wondering how to fix it. Basically I have a tree tile and when I left click while my mouse hovers over the tree, it's tile is set to null and an item is spawned. Now, the item spawning works fine but the tree tile being st to null doesn't synchronize over to other clients. Any fixes?</p>
  <pre><code>void BreakDecor()
  {
      GameObject spawnedItem = PhotonNetwork.Instantiate(&quot;Item&quot;, new Vector3(selectedTile.x + 0.5f, selectedTile.y + 0.5f), Quaternion.identity);
      spawnedItem.GetComponent&lt;ItemObjectHolder&gt;().item = ItemDirectory.instance.itemDirectory[decor.GetTile&lt;TileBase&gt;(selectedTile).name];
      decor.SetTile(selectedTile, null);
  }
  void Update()
  {
      Vector3 point = Camera.main.ScreenToWorldPoint(Input.mousePosition);
  
      if (Input.GetMouseButtonDown(0))
      {
          if (point.x - player.transform.position.x &lt; distanceFromPlayer &amp;&amp; player.transform.position.x - point.x &lt; distanceFromPlayer &amp;&amp; point.y - player.transform.position.y &lt; distanceFromPlayer &amp;&amp; player.transform.position.y - point.y &lt; distanceFromPlayer)
          {
              selectedTile = decor.WorldToCell(point);
              if (decor.GetTile(selectedTile) != null)
              {
                  BreakDecor();
              }
          }
      }
  </code></pre>