Can not edit procedural generated Tilemap with default brush

Hi,
I am currently experimenting with a function to generate procedural tilemaps.
My problem is, that I can not edit the tiles I generated using the
tilemap.settile(position,tile) function afterwards.
I am trying to delete or paint over the tails using the default brush.
Looks like it should be something quite simple, right?

Problem is solved.
I am not quite sure, but it seems to make a difference how i loop through the tilemap positions when placing
tiles on the map.
Using tilemap.cellbounds.allPositionsWithin has generated an editable tilemap for me.

Second options would be a bug in a previous version before b09.

Hi, I have the same problem and I don’t know how to fix it. I have a simple test code:

for (int i = down; i <= up; i++)
{
tilemap.SetTile(new Vector3Int(left, i, 1), tile1);
tilemap.SetTile(new Vector3Int(right, i, 1), tile1);
}

but I can not edit it with the brush on the editor. How did you fixed it?

Thank you

Ok, the problem was the z position of SetTile.

Z of Vector3Int should be set to 0 instead of everything else to be able to edit it with brush in the editor mode.