How to store tile's rotation?

I had an array of TileBase to store all the tile that i drew on a tilemap. When drawing tile i rotated and flipped some tiles but i think TileBase doesn’t store rotation of a tile. When i loop through the array and set each tile it reset the rotation to zero. How to fix this? Are there any way to store a tile’s rotation data?

Okay i firgured it out! Just use tilemap.SetTransformMatrix().