Struct EditorInterface
Godot editor's interface.
struct EditorInterface
;
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.
Methods
| Name | Description |
|---|---|
editResource
|
Edits the given Resource.
|
getBaseControl
|
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. |
getCurrentPath
|
|
getEditedSceneRoot
|
Returns the edited (current) scene's root Node.
|
getEditorSettings
|
Returns the EditorSettings.
|
getEditorViewport
|
Returns the editor Viewport.
|
getInspector
|
|
getOpenScenes
|
Returns an Array with the file paths of the currently opened scenes.
|
getResourceFilesystem
|
Returns the EditorFileSystem.
|
getResourcePreviewer
|
Returns the EditorResourcePreview.
|
getScriptEditor
|
Returns the ScriptEditor.
|
getSelectedPath
|
|
getSelection
|
Returns the EditorSelection.
|
inspectObject
|
Shows the given property on the given object in the Editor's Inspector dock.
|
isPluginEnabled
|
Returns the enabled status of a plugin. The plugin name is the same as its directory name. |
makeMeshPreviews
|
Returns mesh previews rendered at the given size as an Array of Textures.
|
openSceneFromPath
|
Opens the scene at the given path. |
reloadSceneFromPath
|
Reloads the scene at the given path. |
saveScene
|
Saves the scene. Returns either OK or ERR_CANT_CREATE (see @GlobalScope constants).
|
saveSceneAs
|
Saves the scene as a file at path.
|
selectFile
|
Selects the file, with the path provided by file, in the FileSystem dock.
|
setDistractionFreeMode
|
|
setMainScreenEditor
|
|
setPluginEnabled
|
Sets the enabled status of a plugin. The plugin name is the same as its directory name. |