Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
EditorPlugin¶
Used by the editor to extend its functionality.
Description¶
Plugins are used by the editor to extend functionality. The most common types of plugins are those which edit a given node or resource type, import plugins and export plugins. See also EditorScript to add functions to the editor.
Tutorials¶
Methods¶
Signals¶
main_screen_changed ( String screen_name )
Emitted when user changes the workspace (2D, 3D, Script, AssetLib). Also works with custom screens defined by plugins.
project_settings_changed ( )
Emitted when any project setting has changed.
resource_saved ( Resource resource )
Emitted when the given resource
was saved on disc.
scene_changed ( Node scene_root )
Emitted when the scene is changed in the editor. The argument will return the root node of the scene that has just become active. If this scene is new and empty, the argument will be null
.
scene_closed ( String filepath )
Emitted when user closes a scene. The argument is file path to a closed scene.
Enumerations¶
enum CustomControlContainer:
CustomControlContainer CONTAINER_TOOLBAR = 0
Main editor toolbar, next to play buttons.
The toolbar that appears when 3D editor is active.
CustomControlContainer CONTAINER_SPATIAL_EDITOR_SIDE_LEFT = 2
Left sidebar of the 3D editor.
CustomControlContainer CONTAINER_SPATIAL_EDITOR_SIDE_RIGHT = 3
Right sidebar of the 3D editor.
CustomControlContainer CONTAINER_SPATIAL_EDITOR_BOTTOM = 4
Bottom panel of the 3D editor.
The toolbar that appears when 2D editor is active.
CustomControlContainer CONTAINER_CANVAS_EDITOR_SIDE_LEFT = 6
Left sidebar of the 2D editor.
CustomControlContainer CONTAINER_CANVAS_EDITOR_SIDE_RIGHT = 7
Right sidebar of the 2D editor.
CustomControlContainer CONTAINER_CANVAS_EDITOR_BOTTOM = 8
Bottom panel of the 2D editor.
CustomControlContainer CONTAINER_INSPECTOR_BOTTOM = 9
Bottom section of the inspector.
CustomControlContainer CONTAINER_PROJECT_SETTING_TAB_LEFT = 10
Tab of Project Settings dialog, to the left of other tabs.
CustomControlContainer CONTAINER_PROJECT_SETTING_TAB_RIGHT = 11
Tab of Project Settings dialog, to the right of other tabs.
enum DockSlot:
DockSlot DOCK_SLOT_LEFT_UL = 0
Dock slot, left side, upper-left (empty in default layout).
DockSlot DOCK_SLOT_LEFT_BL = 1
Dock slot, left side, bottom-left (empty in default layout).
DockSlot DOCK_SLOT_LEFT_UR = 2
Dock slot, left side, upper-right (in default layout includes Scene and Import docks).
DockSlot DOCK_SLOT_LEFT_BR = 3
Dock slot, left side, bottom-right (in default layout includes FileSystem dock).
DockSlot DOCK_SLOT_RIGHT_UL = 4
Dock slot, right side, upper-left (empty in default layout).
DockSlot DOCK_SLOT_RIGHT_BL = 5
Dock slot, right side, bottom-left (empty in default layout).
DockSlot DOCK_SLOT_RIGHT_UR = 6
Dock slot, right side, upper-right (in default layout includes Inspector, Node and History docks).
DockSlot DOCK_SLOT_RIGHT_BR = 7
Dock slot, right side, bottom-right (empty in default layout).
DockSlot DOCK_SLOT_MAX = 8
Represents the size of the DockSlot enum.