- editResource
void editResource(Resource resource)
- getBaseControl
Control 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.
- getEditedSceneRoot
Node getEditedSceneRoot()
Returns the edited (current) scene's root Node.
- getEditorSettings
Ref!EditorSettings getEditorSettings()
- getEditorViewport
Control getEditorViewport()
Returns the editor Viewport.
- getOpenScenes
Array getOpenScenes()
Returns an Array with the file paths of the currently opened scenes.
- getResourceFilesystem
EditorFileSystem getResourceFilesystem()
- getResourcePreviewer
EditorResourcePreview getResourcePreviewer()
- getScriptEditor
ScriptEditor getScriptEditor()
- getSelectedPath
String getSelectedPath()
- getSelection
EditorSelection getSelection()
- inspectObject
void inspectObject(GodotObject object, StringArg1 for_property)
Shows the given property on the given object in the Editor's Inspector dock.
- isPluginEnabled
bool isPluginEnabled(StringArg0 plugin)
Returns the enabled status of a plugin. The plugin name is the same as its directory name.
- makeMeshPreviews
Array makeMeshPreviews(Array meshes, long preview_size)
Returns mesh previews rendered at the given size as an Array of Textures.
- opAssign
EditorInterface opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(EditorInterface other)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
- openSceneFromPath
void openSceneFromPath(StringArg0 scene_filepath)
Opens the scene at the given path.
- reloadSceneFromPath
void reloadSceneFromPath(StringArg0 scene_filepath)
Reloads the scene at the given path.
- saveScene
GodotError saveScene()
Saves the scene. Returns either OK or ERR_CANT_CREATE. See @GlobalScope constants.
- saveSceneAs
void saveSceneAs(StringArg0 path, bool with_preview)
Saves the scene as a file at path.
- selectFile
void selectFile(StringArg0 p_file)
- setPluginEnabled
void setPluginEnabled(StringArg0 plugin, bool enabled)
Sets the enabled status of a plugin. The plugin name is the same as its directory name.
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.