From 8580f377a3d7d72c319e9e5489bcbe1678ad704b Mon Sep 17 00:00:00 2001 From: reduz Date: Sat, 16 Apr 2022 12:23:32 +0200 Subject: Implement Scene Unique Nodes Implements https://github.com/godotengine/godot-proposals/issues/4096 * Nodes can be marked unique to the scene in the editor (or via code). * Unique nodes can be accessed via the **%** prefix at any point in the path. From that point in the path (depending on whether the scene of the path is), the unique node will be fetched. * Implementation is very optimal, as these nodes are cached. --- editor/scene_tree_editor.h | 1 + 1 file changed, 1 insertion(+) (limited to 'editor/scene_tree_editor.h') diff --git a/editor/scene_tree_editor.h b/editor/scene_tree_editor.h index 547a5b57ca..3d88081ab1 100644 --- a/editor/scene_tree_editor.h +++ b/editor/scene_tree_editor.h @@ -53,6 +53,7 @@ class SceneTreeEditor : public Control { BUTTON_SIGNALS = 6, BUTTON_GROUPS = 7, BUTTON_PIN = 8, + BUTTON_UNIQUE = 9, }; Tree *tree = nullptr; -- cgit v1.2.3