Skip to content

Commit

Permalink
Added custom tile properties to Godot .tscn export format (#3653)
Browse files Browse the repository at this point in the history
Custom tile properties will now get exported as Custom Data Layers on 
the Godot TileSet resource. 

A Custom Data Layer will be set up for each unique property name used on
a tile that is used in any of a map's tilesets.
  • Loading branch information
keharriso authored Jun 9, 2023
1 parent 6b66aa4 commit c59d9f9
Show file tree
Hide file tree
Showing 3 changed files with 277 additions and 20 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Fixed hover highlight rendering with active parallax factor (#3669)
* Fixed updating of object selection outlines when changing parallax factor (#3669)
* Fixed "Offset Map" action to offset all objects when choosing "Whole Map" as bounds
* Godot 4 plugin: Export custom tile properties as Custom Data Layers (with Kevin Harrison, #3653)
* AppImage: Updated to Sentry 0.6.3
* Qt 6: Increased the image allocation limit from 1 GB to 4 GB (#3616)

Expand Down
11 changes: 11 additions & 0 deletions docs/manual/export-tscn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,17 @@ The ``exportAlternates`` property is necessary when using flipped or rotated
tiles. This will create 7 alternate tiles for each tile, allowing all flipped
and rotation combinations.

Tile Properties
~~~~~~~~~~~~~~~

.. raw:: html

<div class="new">New in Tiled 1.10.2</div>

All custom properties set on tiles will get exported as `Custom Data Layers
<https://docs.godotengine.org/en/stable/tutorials/2d/using_tilesets.html#assigning-custom-metadata-to-the-tileset-s-tiles>`__
of the Godot TileSet resource.

.. _godot4-map-properties:

Map Properties
Expand Down
Loading

0 comments on commit c59d9f9

Please sign in to comment.