I am generating tiles automatically to build a path. To save on the number of tiles needed and simplify things I want to rotate or flip the tiles so that the path can line up.
I don’t see any way to this through TileBase.
Ideally I would do something like:
road1.rotate but even road1.flipx and road1.flipy would work.
Is there any way to do this using the current tilemap system?
I got my collisions to work by putting this line at the end of the GetTileData function.
tileData.colliderType = ColliderType.Sprite;
As for the gaps. There are various ways to get around this. What worked best for me was to save each tile individually and setting the Mesh Type from Tight to Full Rect. Also having pixel snap enabled in the sprite material.
However, I cannot get rotations to work as you did after I set the tiles.