Skip to main content
The Godot Editor interface provides a comprehensive environment for game development. The 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:
The 2D viewport does not have a camera. View transforms are done directly using global_canvas_transform.

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 toolbar
  • CONTAINER_SPATIAL_EDITOR_MENU - 3D editor toolbar
  • CONTAINER_SPATIAL_EDITOR_SIDE_LEFT - 3D left sidebar
  • CONTAINER_SPATIAL_EDITOR_SIDE_RIGHT - 3D right sidebar
  • CONTAINER_SPATIAL_EDITOR_BOTTOM - 3D bottom panel
  • CONTAINER_CANVAS_EDITOR_MENU - 2D editor toolbar
  • CONTAINER_CANVAS_EDITOR_SIDE_LEFT - 2D left sidebar
  • CONTAINER_CANVAS_EDITOR_SIDE_RIGHT - 2D right sidebar
  • CONTAINER_CANVAS_EDITOR_BOTTOM - 2D bottom panel
  • CONTAINER_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/enable is true in EditorSettings
  • interface/editor/display/single_window_mode is false
  • Platform supports multiple windows (not Web)

Base Control

Get the root control for the entire editor window:
Removing and freeing the base control will render the editor useless and may cause a crash.

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