Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tileset.asset.fileName returns null in export_to_godot_tilemap.mjs #52

Open
calebtnorth opened this issue Dec 16, 2022 · 0 comments
Open

Comments

@calebtnorth
Copy link

calebtnorth commented Dec 16, 2022

I was having difficulty utilizing the relativePath property exporting a TileMap when, upon testing, realized it would properly set the ext_resource in the final .tscn if I specified the exact path to the tileset (e.g. /Assets/Maps/Town/town_map.tres).|

This did not happen with Tilesets, as the exported .tres properly linked to their source image without projectRoot or relativePath needing to be specified.

I dug around the source code only to find that tileset.asset.fileName in setTilesetsString() returned null when tileset.asset returned a proper object reference, resulting in relativePath only working if it included the tileset file name as well.

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant