I’m trying to generate tilemaps procedurally and I run into problems with the tilemap-colliders.
I use a Tilesource with colliders defined, and my tilemap has a collision component for the tilemap. When I set a tile I get an error message complaining about the collision objects.
ERROR:GAMESYS: Hulls can only be set for collision objects with tile grids as shape.
Is there a way to trigger a regeneration of the colliders in the tilemap after changing the tiles?
The problem turns out to be the extra collision-object I have in the go. I have one collision object with the tilemap as shape, and one with four boxes marking the edges of the screen. If I remove the collision object with the boxes there are no errors.
So it seems that the generation of the tilemap colliders also tries to update the other collision object, which throws errors because it is not a tilemap-collider.
Is this a bug or am I doing something wrong?