From 12474fd87ae5de819eee58d0d0bf0b9e2c521cfb Mon Sep 17 00:00:00 2001 From: reduz Date: Mon, 23 May 2022 02:24:14 +0200 Subject: Improve MultiplayerSynchronizer editor usability * Add a button to add properties (which lets you select node and property) * Add ability to drag properties and drop them to the editor. * Made the editor transient (not always visible on the bottom) since its not needed most of the time. * Added the ability to pin the editor, in case dragging properties from other nodes is desired. --- scene/multiplayer/multiplayer_synchronizer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/multiplayer/multiplayer_synchronizer.h') diff --git a/scene/multiplayer/multiplayer_synchronizer.h b/scene/multiplayer/multiplayer_synchronizer.h index e856745379..f61ef459da 100644 --- a/scene/multiplayer/multiplayer_synchronizer.h +++ b/scene/multiplayer/multiplayer_synchronizer.h @@ -40,7 +40,7 @@ class MultiplayerSynchronizer : public Node { private: Ref replication_config; - NodePath root_path; + NodePath root_path = NodePath(".."); // Start with parent, like with AnimationPlayer. uint64_t interval_msec = 0; static Object *_get_prop_target(Object *p_obj, const NodePath &p_prop); -- cgit v1.2.3