In that case you don't need the number of tiles right?
On paletteTilemap clicked - Set selectionVariable to paletteTilemap.TileAt(paletteTilemap.PositionToTileX(Mouse.X),paletteTilemap.PositionToTileY(Mouse.Y)
On canvasTilemap clicked - Set tile at canvasTilemap.PositionToTileX(Mouse.X), canvasTilemap.PositionToTileY(Mouse.Y) to selectionVariable
Thanks!
I also didn't know that PositionToTile was a thing!
In that case you don't need the number of tiles right?
I was planning on adding custom tileset support in the future, so I figured it would count the number of tiles, and loop adding a new image until it was finished. I think I may want to just add it as a animation or something?