diff options
| author | Juan Linietsky | 2015-08-02 12:29:37 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-08-02 12:30:01 -0300 |
| commit | 59961c99144523d7cc2881a4abe6d0a319a975df (patch) | |
| tree | 556cd9053433a27bbbc34dfe0a3e9fe693957299 /tools/editor/editor_data.h | |
| parent | 922356b903061cda7591090bf19e8346c3a78cf5 (diff) | |
| download | godot-59961c99144523d7cc2881a4abe6d0a319a975df.tar.gz godot-59961c99144523d7cc2881a4abe6d0a319a975df.tar.zst godot-59961c99144523d7cc2881a4abe6d0a319a975df.zip | |
Live edit WORK IN PROGRESS
1) press the heart while the game is running
2) select a scene to live edit from the opened scenes
3) edit/add/remove nodes or resources, change their properties, etc.
4) watch changes reflected in running game, in all places this scene is
edited
5) It's not perfect obviously, but the aim of it is to try to reflect
your changes as best as possible in the running game.
Diffstat (limited to 'tools/editor/editor_data.h')
| -rw-r--r-- | tools/editor/editor_data.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/editor/editor_data.h b/tools/editor/editor_data.h index 14a50da08..cbec2295f 100644 --- a/tools/editor/editor_data.h +++ b/tools/editor/editor_data.h @@ -129,6 +129,7 @@ private: int history_current; Dictionary custom_state; uint64_t version; + NodePath live_edit_root; }; @@ -183,6 +184,8 @@ public: uint64_t get_edited_scene_version() const; uint64_t get_scene_version(int p_idx) const; void clear_edited_scenes(); + void set_edited_scene_live_edit_root(const NodePath& p_root); + NodePath get_edited_scene_live_edit_root(); void set_plugin_window_layout(Ref<ConfigFile> p_layout); |
