The index of the tile to search for.
The index of the tile to replace it with.
The left most tile index (in tile coordinates) to use as the origin of the area.
The top most tile index (in tile coordinates) to use as the origin of the area.
How many tiles wide from the tileX index the area will be.
How many tiles tall from the tileY index the area will be.
The Tilemap Layer to act upon.
Scans the given rectangular area (given in tile coordinates) for tiles with an index matching
findIndexand updates their index to matchnewIndex. This only modifies the index and does not change collision information.