godot-tiled-importer icon indicating copy to clipboard operation
godot-tiled-importer copied to clipboard

Reference objects as NodePath rather than Tiled id

Open bitbrain opened this issue 1 year ago • 1 comments

Compatible with Tiled Version: 1.9.0

Description

Within Tiled, objects can be referenced like so:

tiled

However, within Godot the meta field shows up as Tiled integer id. This pull request changes this behaviour to instead populate the node path of the referenced object for easier lookup.

bitbrain avatar Jul 17 '22 20:07 bitbrain

One thing I noticed with this is that it is not recursive - when referencing paths on custom attributes through custom classes, e.g.: Capture

However, I cannot implement that before https://github.com/vnen/godot-tiled-importer/pull/158 is ready, as currently reading these attributes is impossible.

bitbrain avatar Jul 19 '22 06:07 bitbrain