|
@@ -23,13 +23,14 @@
|
|
<return type="Control">
|
|
<return type="Control">
|
|
</return>
|
|
</return>
|
|
<description>
|
|
<description>
|
|
- Returns the main container of Godot editor's window. You can use it, for example, to retrieve the size of the container and place your controls accordingly.
|
|
|
|
|
|
+ Returns the main container of Godot editor's window. For example, you can use it to retrieve the size of the container and place your controls accordingly.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="get_current_path" qualifiers="const">
|
|
<method name="get_current_path" qualifiers="const">
|
|
<return type="String">
|
|
<return type="String">
|
|
</return>
|
|
</return>
|
|
<description>
|
|
<description>
|
|
|
|
+ Returns the current path being viewed in the [FileSystemDock].
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="get_edited_scene_root">
|
|
<method name="get_edited_scene_root">
|
|
@@ -43,26 +44,29 @@
|
|
<return type="EditorSettings">
|
|
<return type="EditorSettings">
|
|
</return>
|
|
</return>
|
|
<description>
|
|
<description>
|
|
- Returns the [EditorSettings].
|
|
|
|
|
|
+ Returns the editor's [EditorSettings] instance.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="get_editor_viewport">
|
|
<method name="get_editor_viewport">
|
|
<return type="Control">
|
|
<return type="Control">
|
|
</return>
|
|
</return>
|
|
<description>
|
|
<description>
|
|
- Returns the editor [Viewport].
|
|
|
|
|
|
+ Returns the editor's [Viewport] instance.
|
|
|
|
+ [b]Note:[/b] This returns the main editor viewport containing the whole editor, not the 2D or 3D viewports specifically.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="get_file_system_dock">
|
|
<method name="get_file_system_dock">
|
|
<return type="FileSystemDock">
|
|
<return type="FileSystemDock">
|
|
</return>
|
|
</return>
|
|
<description>
|
|
<description>
|
|
|
|
+ Returns the editor's [FileSystemDock] instance.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="get_inspector" qualifiers="const">
|
|
<method name="get_inspector" qualifiers="const">
|
|
<return type="EditorInspector">
|
|
<return type="EditorInspector">
|
|
</return>
|
|
</return>
|
|
<description>
|
|
<description>
|
|
|
|
+ Returns the editor's [EditorInspector] instance.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="get_open_scenes" qualifiers="const">
|
|
<method name="get_open_scenes" qualifiers="const">
|
|
@@ -83,34 +87,35 @@
|
|
<return type="EditorFileSystem">
|
|
<return type="EditorFileSystem">
|
|
</return>
|
|
</return>
|
|
<description>
|
|
<description>
|
|
- Returns the [EditorFileSystem].
|
|
|
|
|
|
+ Returns the editor's [EditorFileSystem] instance.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="get_resource_previewer">
|
|
<method name="get_resource_previewer">
|
|
<return type="EditorResourcePreview">
|
|
<return type="EditorResourcePreview">
|
|
</return>
|
|
</return>
|
|
<description>
|
|
<description>
|
|
- Returns the [EditorResourcePreview].
|
|
|
|
|
|
+ Returns the editor's [EditorResourcePreview] instance.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="get_script_editor">
|
|
<method name="get_script_editor">
|
|
<return type="ScriptEditor">
|
|
<return type="ScriptEditor">
|
|
</return>
|
|
</return>
|
|
<description>
|
|
<description>
|
|
- Returns the [ScriptEditor].
|
|
|
|
|
|
+ Returns the editor's [ScriptEditor] instance.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="get_selected_path" qualifiers="const">
|
|
<method name="get_selected_path" qualifiers="const">
|
|
<return type="String">
|
|
<return type="String">
|
|
</return>
|
|
</return>
|
|
<description>
|
|
<description>
|
|
|
|
+ Returns the path of the directory currently selected in the [FileSystemDock]. If a file is selected, its base directory will be returned using [method String.get_base_dir] instead.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="get_selection">
|
|
<method name="get_selection">
|
|
<return type="EditorSelection">
|
|
<return type="EditorSelection">
|
|
</return>
|
|
</return>
|
|
<description>
|
|
<description>
|
|
- Returns the [EditorSelection].
|
|
|
|
|
|
+ Returns the editor's [EditorSelection] instance.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="inspect_object">
|
|
<method name="inspect_object">
|
|
@@ -121,14 +126,14 @@
|
|
<argument index="1" name="for_property" type="String" default="""">
|
|
<argument index="1" name="for_property" type="String" default="""">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
- Shows the given property on the given [code]object[/code] in the Editor's Inspector dock.
|
|
|
|
|
|
+ Shows the given property on the given [code]object[/code] in the editor's Inspector dock.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="is_playing_scene" qualifiers="const">
|
|
<method name="is_playing_scene" qualifiers="const">
|
|
<return type="bool">
|
|
<return type="bool">
|
|
</return>
|
|
</return>
|
|
<description>
|
|
<description>
|
|
- Returns [code]true[/code], if a scene is currently being played; [code]false[/code] otherwise. Paused scenes are considered as being played.
|
|
|
|
|
|
+ Returns [code]true[/code] if a scene is currently being played, [code]false[/code] otherwise. Paused scenes are considered as being played.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="is_plugin_enabled" qualifiers="const">
|
|
<method name="is_plugin_enabled" qualifiers="const">
|
|
@@ -137,7 +142,7 @@
|
|
<argument index="0" name="plugin" type="String">
|
|
<argument index="0" name="plugin" type="String">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
- Returns the enabled status of a plugin. The plugin name is the same as its directory name.
|
|
|
|
|
|
+ Returns [code]true[/code] if the specified [code]plugin[/code] is enabled. The plugin name is the same as its directory name.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="make_mesh_previews">
|
|
<method name="make_mesh_previews">
|
|
@@ -225,6 +230,7 @@
|
|
<argument index="0" name="name" type="String">
|
|
<argument index="0" name="name" type="String">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
|
|
+ Sets the editor's current main screen to the one specified in [code]name[/code]. [code]name[/code] must match the text of the tab in question exactly ([code]2D[/code], [code]3D[/code], [code]Script[/code], [code]AssetLib[/code]).
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="set_plugin_enabled">
|
|
<method name="set_plugin_enabled">
|