Added object support to Godot exporter by Skrapion · Pull Request #3615 · mapeditor/tiled (original) (raw)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, ok. But in that case, this whole thing seems to be only a bit complicated due to the use of the base name derived from the path. Couldn't we just give these ext_resource entries unique IDs like "object_resource_1", "object_resource_2", etc.? Or is the current mechanism preferred for its human readability of the exported file?
I toyed a bit in Godot to see what it uses as IDs when using "Save Branch as Scene", and it appears to be quite random:
[ext_resource type="PackedScene" uid="uid://nbxmprynxcyd" path="res://collision_shape_2d.tscn" id="2_6ieet"]
[ext_resource type="PackedScene" uid="uid://cqy4y2ac8ub0n" path="res://collision_shape_2d_2.tscn" id="3_r05t1"]