diff --git a/doc/classes/Node.xml b/doc/classes/Node.xml index 3a8699f86..cda7c5aaa 100644 --- a/doc/classes/Node.xml +++ b/doc/classes/Node.xml @@ -366,7 +366,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. @@ -673,7 +680,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 8a5537bed..a96c3c8a7 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -3286,6 +3286,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); ClassDB::bind_method(D_METHOD("get_world"), &Node::get_world);