diff --git a/doc/classes/Node.xml b/doc/classes/Node.xml index 0de968fac38..88369a32263 100644 --- a/doc/classes/Node.xml +++ b/doc/classes/Node.xml @@ -359,7 +359,14 @@ - Returns [code]true[/code] if the node is folded (collapsed) in the Scene dock. + Returns [code]true[/code] if the node is folded (collapsed) in the Scene dock. This method is only intended for use with editor tooling. + + + + + + + Returns [code]true[/code] if [code]node[/code] has editable children enabled relative to this node. This method is only intended for use with editor tooling. @@ -649,7 +656,15 @@ - Sets the folded state of the node in the Scene dock. + Sets the folded state of the node in the Scene dock. This method is only intended for use with editor tooling. + + + + + + + + Sets the editable children state of [code]node[/code] relative to this node. This method is only intended for use with editor tooling. diff --git a/scene/main/node.cpp b/scene/main/node.cpp index c30a44c8b72..09e2aec1d39 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -3078,6 +3078,8 @@ void Node::_bind_methods() { ClassDB::bind_method(D_METHOD("set_scene_instance_load_placeholder", "load_placeholder"), &Node::set_scene_instance_load_placeholder); ClassDB::bind_method(D_METHOD("get_scene_instance_load_placeholder"), &Node::get_scene_instance_load_placeholder); + ClassDB::bind_method(D_METHOD("set_editable_instance", "node", "is_editable"), &Node::set_editable_instance); + ClassDB::bind_method(D_METHOD("is_editable_instance", "node"), &Node::is_editable_instance); ClassDB::bind_method(D_METHOD("get_viewport"), &Node::get_viewport);