Merge pull request #83437 from SaracenOne/multiplayer_authority_debug

Display multiplayer authority ID in remote debugger
This commit is contained in:
Rémi Verschelde 2023-10-23 12:39:43 +02:00
commit 8d7f3d6bc9
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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"));