- Home /
Question by
Long2904 · Mar 29, 2020 at 08:53 AM ·
rotationscripting problemtilemaptile
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?
Comment
Best Answer
Answer by Long2904 · Mar 29, 2020 at 12:10 PM
Okay i firgured it out! Just use tilemap.SetTransformMatrix().