You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #109049 from ryevdokimov/deprecate-script-add-root-node
Relocate `add_root_node` method to `EditorInterface` from `EditorScript` and deprecate old method
This commit is contained in:
@@ -19,6 +19,13 @@
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="add_root_node">
|
||||
<return type="void" />
|
||||
<param index="0" name="node" type="Node" />
|
||||
<description>
|
||||
Makes [param node] root of the currently opened scene. Only works if the scene is empty. If the [param node] is a scene instance, an inheriting scene will be created.
|
||||
</description>
|
||||
</method>
|
||||
<method name="close_scene">
|
||||
<return type="int" enum="Error" />
|
||||
<description>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
This method is executed by the Editor when [b]File > Run[/b] is used.
|
||||
</description>
|
||||
</method>
|
||||
<method name="add_root_node">
|
||||
<method name="add_root_node" deprecated="Use [method EditorInterface.add_root_node] instead.">
|
||||
<return type="void" />
|
||||
<param index="0" name="node" type="Node" />
|
||||
<description>
|
||||
|
||||
Reference in New Issue
Block a user