Skip to content

Commit

Permalink
Merge pull request #83437 from SaracenOne/multiplayer_authority_debug
Browse files Browse the repository at this point in the history
Display multiplayer authority ID in remote debugger
  • Loading branch information
akien-mga committed Oct 23, 2023
2 parents e19acaa + 66ca317 commit 8d7f3d6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scene/debugger/scene_debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit 8d7f3d6

Please sign in to comment.