Problem:
Setting tiles on a tilemap from code causes the collision shapes to be regenerated. If there is another collision object in the same game object errors are thrown.
Error message:
ERROR:GAMESYS: Hulls can only be set for collision objects with tile grids as shape.
Reproduce:
A gameobject with the following:
- a tilemap with a tilesource defining colliders
- a collision object with the tilemap as shape
- a second collision object with a box shape
From a script on the go, set a tile on the tilemap. This causes the collision shapes to be regenerated and also throws errors.