diff options
author | Saracen <SaracenOne@gmail.com> | 2023-10-16 12:42:47 +0100 |
---|---|---|
committer | Saracen <SaracenOne@gmail.com> | 2023-10-22 14:23:15 +0100 |
commit | 66ca317e2cdd23dd5da1a74f290ca891b447737e (patch) | |
tree | c5d999f17dac56ab32b04016c23be01c4cbf0808 /scene/debugger | |
parent | 1ab77f410e5a21dbedb019cdbf723470459e5dbe (diff) | |
download | redot-engine-66ca317e2cdd23dd5da1a74f290ca891b447737e.tar.gz |
Display multiplayer authority ID in remote debugger
Diffstat (limited to 'scene/debugger')
-rw-r--r-- | scene/debugger/scene_debugger.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/debugger/scene_debugger.cpp b/scene/debugger/scene_debugger.cpp index 4b097412d6..79cd1056dd 100644 --- a/scene/debugger/scene_debugger.cpp +++ b/scene/debugger/scene_debugger.cpp @@ -336,6 +336,12 @@ SceneDebuggerObject::SceneDebuggerObject(ObjectID p_id) { } if (Node *node = Object::cast_to<Node>(obj)) { + // For debugging multiplayer. + { + PropertyInfo pi(Variant::INT, String("Node/multiplayer_authority"), PROPERTY_HINT_NONE, "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_READ_ONLY); + properties.push_back(SceneDebuggerProperty(pi, node->get_multiplayer_authority())); + } + // Add specialized NodePath info (if inside tree). if (node->is_inside_tree()) { PropertyInfo pi(Variant::NODE_PATH, String("Node/path")); |