What property "Rotate tile" buttons in TileMap changes and how to get it via code?

Godot Version

v4.2.1.stable.official [b09f793f5]


I have code that parses trough get_used_cells output of tilemap scene.
Some tiles on tilemap are rotated using tool in tilemap tab named “Rotate Tile Left(Z)” and “Rotate Tile Right(X)”. I need to check via code if cell in get_used_cells output is rotated by this tool.

1 Like

The rotation data is encoded as a hidden alternative tile. In the documentation there is an example on how to work with it TileSetAtlasSource — Godot Engine (stable) documentation in English

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.