-
Notifications
You must be signed in to change notification settings - Fork 16
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
Updating view when levels where changed? #52
Comments
Have you tried reloading the scene?
|
Yes. But that doesn’t happen automatically. Ldtk supports executing a script when a level is saved. Maybe it’s possible to trigger godot into reloading the assets somehow. I believe the unity plunging for ldtk does something similar. |
This should be the default behaviour. Godot should automatically detect file changes and trigger a reimport. What versions of Godot/godot-ldtk-importer are you using? |
Hmm... maybe it's a Godot issue then I'm using ldtk 2.0.1 As you can see here I have changed the tileset and the level layout in ldtk and saved it. When returning to Godot it does say that it imports the level. But no change has happened. Pressing Alt R doesn't do anything but closing the level and opening it again shows the updated level. Although not the correct tileset. Maybe it has something to do with the way Godot keeps track of files with the new UID system? |
Ah, okay! I have been warned out there being issues with the Godot 4.4 beta! I will try to find some time to look into this. |
After some experimenting in 4.4, it seems like this is related to Godot's cache of imported scenes (the LDTK World scene is saved in The only consistent solution I could find is to not have any scenes open that have the LDTK World scene as a parent/child node. Having just the LDTK Scene open will automatically refresh/reload on reimport without issues. So for now - keybind to "Reload Saved Scene" to force a refresh. Definitely a weird issue - it could be that the importer's approach to creating Level Scenes is missing detail to say that it technically belongs to an imported resource. If anyone has more insight on this, please share. |
Thanks for looking into this! |
Your suggestion, actually!
|
Hi!
After having made some changes in a level in ldtk I have to close the scene in Godot an open it again to see the changes.
Is there a way to make that happen automatically?
I'm using Godot 4.4 beta 1
Thanks!
The text was updated successfully, but these errors were encountered: