I’m trying to create Tilemaps programmatically. I’m creating a new Tilemap; instantiating a new Tile; using Addressables to load in a sprite; adding the sprite to the new Tile; then using SetTile() to place that tile into the Tilemap.
However the only way I can figure how to rotate the graphic programmatically is to work with Matrix4x4s in the Tile object. Which I am prepared to learn how to do on my own, however the Unity documentation seems to imply it shouldn’t be necessary for something as seemingly simple as rotating a tile graphic.
So am I missing a more obvious solution? How am I supposed to rotate graphics on a Tilemap programmatically?