Godot editor's interface.
EditorInterface gives you control over Godot editor's window. It allows customizing the window, saving and (re-)loading scenes, rendering mesh previews, inspecting and editing resources and objects, and provides access to [EditorSettings], [EditorFileSystem], [EditorResourcePreview], [ScriptEditor], the editor viewport, and information about scenes.
[b]Note:[/b] This class shouldn't be instantiated directly. Instead, access the singleton using [method EditorPlugin.get_editor_interface].
Edits the given [Resource].
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 edited (current) scene's root [Node].
Returns the [EditorSettings].
Returns the editor [Viewport].
Returns an [Array] with the file paths of the currently opened scenes.
Returns the name of the scene that is being played. If no scene is currently being played, returns an empty string.
Returns the [EditorFileSystem].
Returns the [EditorResourcePreview].
Returns the [ScriptEditor].
Returns the [EditorSelection].
Shows the given property on the given [code]object[/code] in the Editor's Inspector dock.
Returns [code]true[/code], if a scene is currently being played; [code]false[/code] otherwise. Paused scenes are considered as being played.
Returns the enabled status of a plugin. The plugin name is the same as its directory name.
Returns mesh previews rendered at the given size as an [Array] of [Texture2D]s.
Opens the scene at the given path.
Plays the currently active scene.
Plays the scene specified by its filepath.
Plays the main scene.
Reloads the scene at the given path.
Saves the scene. Returns either [code]OK[/code] or [code]ERR_CANT_CREATE[/code] (see [@GlobalScope] constants).
Saves the scene as a file at [code]path[/code].
Selects the file, with the path provided by [code]file[/code], in the FileSystem dock.
Sets the enabled status of a plugin. The plugin name is the same as its directory name.
Stops the scene that is currently playing.
If [code]true[/code], enables distraction-free mode which hides side docks to increase the space available for the main view.