Tilemap.searchTileIndex allows you to search for the first tile matching the given index, with optional skip and reverse parameters.