Yogoda / ZoneLoadingSystem

Dynamic zone loading system for Godot
Creative Commons Zero v1.0 Universal
229 stars 13 forks source link

Preview nodes #5

Closed rmvermeulen closed 4 years ago

rmvermeulen commented 4 years ago

This is a simple, non-optimized way to preview nodes. It works fine for the examples, at least.

Since it's just using load() and creating and destroying the scene whenever you toggle it, it's going to perform worse when the scenes are very intricate. For now, for me, it's fancy enough.

Key points are that the zone's scripts (saying "zone01 ready") only run in-game, as they aren't tools, and saving the scenes with previews enabled does not include the preview nodes, just the flag used to set it in editor. So when you open the game, it's behaving exactly as before.

Yogoda commented 4 years ago

Merged the change, thank you. I just removed on_ready.gd, I was good to see it is working but not useful for users, I hope it is ok.