Add a method for restarting the editor to EditorInterface
This commit is contained in:
parent
0d95b8bff2
commit
92f5a0a1db
3 changed files with 16 additions and 0 deletions
|
|
@ -206,6 +206,13 @@
|
|||
Reloads the scene at the given path.
|
||||
</description>
|
||||
</method>
|
||||
<method name="restart_editor">
|
||||
<return type="void" />
|
||||
<param index="0" name="save" type="bool" default="true" />
|
||||
<description>
|
||||
Restarts the editor. This closes the editor and then opens the same project. If [param save] is [code]true[/code], the project will be saved before restarting.
|
||||
</description>
|
||||
</method>
|
||||
<method name="save_scene">
|
||||
<return type="int" enum="Error" />
|
||||
<description>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue