Skip to content

Commit a71f670

Browse files
committed
Bind SceneState methods get_path and get_base_scene_state
1 parent 1ba4dbb commit a71f670

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

doc/classes/SceneState.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
<tutorials>
1111
</tutorials>
1212
<methods>
13+
<method name="get_base_scene_state" qualifiers="const">
14+
<return type="SceneState" />
15+
<description>
16+
Returns the [SceneState] of the scene that this scene inherits from, or [code]null[/code] if it doesn't inherit from any scene.
17+
</description>
18+
</method>
1319
<method name="get_connection_binds" qualifiers="const">
1420
<return type="Array" />
1521
<param index="0" name="idx" type="int" />
@@ -155,6 +161,12 @@
155161
Returns the type of the node at [param idx].
156162
</description>
157163
</method>
164+
<method name="get_path" qualifiers="const">
165+
<return type="String" />
166+
<description>
167+
Returns the resource path to the represented [PackedScene].
168+
</description>
169+
</method>
158170
<method name="is_node_instance_placeholder" qualifiers="const">
159171
<return type="bool" />
160172
<param index="0" name="idx" type="int" />

scene/resources/packed_scene.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2092,6 +2092,8 @@ Vector<String> SceneState::_get_node_groups(int p_idx) const {
20922092
void SceneState::_bind_methods() {
20932093
//unbuild API
20942094

2095+
ClassDB::bind_method(D_METHOD("get_path"), &SceneState::get_path);
2096+
ClassDB::bind_method(D_METHOD("get_base_scene_state"), &SceneState::get_base_scene_state);
20952097
ClassDB::bind_method(D_METHOD("get_node_count"), &SceneState::get_node_count);
20962098
ClassDB::bind_method(D_METHOD("get_node_type", "idx"), &SceneState::get_node_type);
20972099
ClassDB::bind_method(D_METHOD("get_node_name", "idx"), &SceneState::get_node_name);

0 commit comments

Comments
 (0)