EditorInterface singleton gives you programmatic access to all major editor components.
Editor Layout Overview
The editor is divided into several key areas that can be accessed and customized through code:Main Screen
The main screen hosts the primary workspace tabs (2D, 3D, Script, Game, AssetLib):The main screen node is a
VBoxContainer. If you add a child Control, set its size_flags_vertical to SIZE_EXPAND_FILL to make it use the full available space.2D and 3D Viewports
Access the editor viewports for custom rendering or camera manipulation:Scene Dock
The scene tree displays the hierarchy of nodes in your current scene:FileSystem Dock
The filesystem dock shows your project’s files and directories:Inspector
The inspector shows and edits properties of the selected node or resource:Node List
Access the current selection of nodes:Bottom Panel
The bottom panel contains tabs for Output, Debugger, Animation, and custom panels:Toolbar
Add custom controls to various toolbar containers:Available Container Positions
CONTAINER_TOOLBAR- Main editor toolbarCONTAINER_SPATIAL_EDITOR_MENU- 3D editor toolbarCONTAINER_SPATIAL_EDITOR_SIDE_LEFT- 3D left sidebarCONTAINER_SPATIAL_EDITOR_SIDE_RIGHT- 3D right sidebarCONTAINER_SPATIAL_EDITOR_BOTTOM- 3D bottom panelCONTAINER_CANVAS_EDITOR_MENU- 2D editor toolbarCONTAINER_CANVAS_EDITOR_SIDE_LEFT- 2D left sidebarCONTAINER_CANVAS_EDITOR_SIDE_RIGHT- 2D right sidebarCONTAINER_CANVAS_EDITOR_BOTTOM- 2D bottom panelCONTAINER_INSPECTOR_BOTTOM- Inspector bottom section
Editor Settings
Access and modify editor settings programmatically:Distraction-Free Mode
Toggle distraction-free mode to hide side docks:Dialogs and Popups
The editor provides several built-in dialogs:Working with Scenes
Multi-Window Support
Check if multi-window mode is available:Multi-window support requires all of these conditions:
interface/multi_window/enableis true in EditorSettingsinterface/editor/display/single_window_modeis false- Platform supports multiple windows (not Web)
Base Control
Get the root control for the entire editor window:Editor Utilities
Example: Custom Editor Layout
See Also
Editor Plugins
Learn how to create custom editor plugins
Custom Nodes
Create custom node types with editor integration