EditorInterface

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.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

editResource
void editResource(Resource resource)

Edits the given 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()

Returns the EditorSettings.

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()

Returns the EditorFileSystem.

getResourcePreviewer
EditorResourcePreview getResourcePreviewer()

Returns the EditorResourcePreview.

getScriptEditor
ScriptEditor getScriptEditor()

Returns the ScriptEditor.

getSelectedPath
String getSelectedPath()
getSelection
EditorSelection getSelection()

Returns the EditorSelection.

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.

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Static functions

_new
EditorInterface _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
ToRef as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta