Can't build using Tilemap.tilemapTileChanged & Tilemap.SyncTile

So I just came across Tilemap.tilemapTileChanged which works great when playing the game & using the editor. However when I try to build I get the error:

error CS0117: 'Tilemap' does not contain a definition for 'tilemapTileChanged'

Anyway to fix this? My IDE finds the references & there are no errors using the editor, only when trying to build.

As it states in the doc link you provided: “This is available only in the Editor.”

This is why it’s not available in a build. I’m not sure why it’s editor only and can ask for you.

1 Like

Hi, this API is only available in the Editor and not in the Player (you will get the error when building the player). Currently, this is not exposed in the Player due to possible performance considerations. If you have a use case for needing it in the Player, do share it with us!

2 Likes