Currently I have a tile that I am placing on Unity's 2D tilemap. It's a custom tile that places another tile below it. I'm having a bit of clash when selecting the tile in the Tile Palette as the preview of the tile on the Tilemap is causing my code which calls Tilemap.SetTile() to set a tile even though it's in preview mode. This is making my tilemap full of tiles even if I haven't clicked to place anything and I just drag my mouse across the screen. Is there any way to disable or modify this previewing functionality? For example could I find out through code If I am in preview mode and avoid calling Tilemap.SetTile() only in preview mode?