diff --git a/doc/classes/SceneState.xml b/doc/classes/SceneState.xml index b7c8931af48..e7dfc65e684 100644 --- a/doc/classes/SceneState.xml +++ b/doc/classes/SceneState.xml @@ -10,6 +10,12 @@ + + + + Returns the [SceneState] of the scene that this scene inherits from, or [code]null[/code] if it doesn't inherit from any scene. + + @@ -155,6 +161,12 @@ Returns the type of the node at [param idx]. + + + + Returns the resource path to the represented [PackedScene]. + + diff --git a/scene/resources/packed_scene.cpp b/scene/resources/packed_scene.cpp index 1650991831c..25ba542215f 100644 --- a/scene/resources/packed_scene.cpp +++ b/scene/resources/packed_scene.cpp @@ -2092,6 +2092,8 @@ Vector SceneState::_get_node_groups(int p_idx) const { void SceneState::_bind_methods() { //unbuild API + ClassDB::bind_method(D_METHOD("get_path"), &SceneState::get_path); + ClassDB::bind_method(D_METHOD("get_base_scene_state"), &SceneState::get_base_scene_state); ClassDB::bind_method(D_METHOD("get_node_count"), &SceneState::get_node_count); ClassDB::bind_method(D_METHOD("get_node_type", "idx"), &SceneState::get_node_type); ClassDB::bind_method(D_METHOD("get_node_name", "idx"), &SceneState::get_node_name);