The Editor & Project Manager
Godot's editor is itself a Godot application, built from the same nodes and UI controls your games use. It is small, starts in seconds and has no separate "hub" or launcher: the Project Manager opens first, and every project opens in the same editor window. This lesson is a tour of the parts you will use every day, plus the files a project keeps on disk.
The Project Manager
- Start Godot. The Project Manager lists the projects it knows about.
- Click Create. Enter a project name and choose a folder (Godot can create an empty one for you).
- Pick a renderer:
- Forward+: desktop, full feature set (SDFGI, volumetric fog, many lights). Uses Vulkan, Direct3D 12 or Metal.
- Mobile: phones and tablets, and simpler desktop games. Fewer features, cheaper per light.
- Compatibility: OpenGL ES 3 / WebGL 2. The only choice for web exports and very old hardware. You can switch later in Project Settings, but materials and lighting can look different, so choose early.
- Leave Version control metadata on Git: Godot writes a
.gitignoreand.gitattributesfor you. - Click Create & Edit.
Import adds an existing folder (anything with a project.godot file), and Scan searches a folder for projects. Projects downloaded from the Asset Library's template section appear here too.
The editor window
| Area | Where | What it does |
|---|---|---|
| Scene dock | top left | The node tree of the scene you are editing. Add nodes with + (or Ctrl+A), drag to reparent. While the game runs, a Remote tab shows the live tree of the running game |
| FileSystem dock | bottom left | Everything under res://. Drag scenes into the viewport to instance them; drag textures onto a property to assign them |
| Inspector | right | The properties of the selected node or resource. Everything you can set here you can also set in code |
| Node dock | next to the Inspector | Two tabs: Signals (connect events to methods) and Groups |
| Main screens | top centre | 2D, 3D, Script and AssetLib workspaces (recent 4.x versions add a Game workspace that shows the running game inside the editor) |
| Bottom panel | bottom | Output (your print calls), Debugger (errors, breakpoints, profiler, monitors), Animation, Audio buses, Shader Editor |
The toolbar at the top right runs the game:
| Key | Action |
|---|---|
| F5 | Run the project (its main scene) |
| F6 | Run the scene that is open in the editor; great for testing one enemy or one menu |
| F8 | Stop the running game |
| F1 | Search the built-in class reference (offline, the same text as docs.godotengine.org) |
Tip: Hold Ctrl and click any class or method name in the script editor to jump to its documentation. The built-in help is the fastest way to check whether an API exists in your Godot version.
What a project looks like on disk
my_game/
├── project.godot # project settings (an INI-like text file)
├── icon.svg
├── .godot/ # import cache and editor state: generated, never commit it
├── player/
│ ├── player.tscn # a scene (text)
│ ├── player.gd # its script
│ ├── player.gd.uid # stable id of the script (Godot 4.4+): commit it
│ ├── player.png
│ └── player.png.import # import settings for the PNG: commit it
└── levels/
└── level_01.tscnres://is the project folder. It is read-only in exported games, so never try to save there at runtime.user://is a per-user, writable folder (on Windows under%APPDATA%\Godot\app_userdata\<project>). Save games and settings go there; see Saving.- Scenes (
.tscn) and resources (.tres) are text by default, which makes them diff and merge well in Git. - Keep files that belong together in one folder (
player/holds the scene, script and art), rather than one folder per file type. Moving files inside the FileSystem dock updates every reference; moving them in your OS file manager breaks them.
Godot works with paths as plain strings, and String has helpers for them. This script runs in real Godot:
extends SceneTree
func _init():
var path := "res://levels/forest/level_02.tscn"
print(path.get_file())
print(path.get_base_dir())
print(path.get_extension())
print(path.get_file().get_basename())
print(path.get_base_dir().path_join("enemies").path_join("bat.tscn"))
print(ResourceLoader.exists("res://main.gd"), " ", ResourceLoader.exists("res://missing.tscn"))
quit()level_02.tscn
res://levels/forest
tscn
level_02
res://levels/forest/enemies/bat.tscn
true false
ResourceLoader.exists is how you check for a level file before loading it. The example script itself is saved as res://main.gd, so the first check is true.
Editor or game?
The same script can run in the editor (a @tool script, which updates the viewport while you edit) or in the game. Engine.is_editor_hint() tells them apart, and it is false in a running game:
extends SceneTree
func _init():
if Engine.is_editor_hint():
print("running inside the editor (a @tool script)")
else:
print("running as a game")
print("Godot ", Engine.get_version_info().string)
quit()running as a game
Godot 4.7.2-stable (official)
A first editing session
- Create a 2D Scene in the Scene dock. Rename the root (double-click it) to
Level. - Press Ctrl+A, search for
Sprite2D, and add it. - Drag
icon.svgfrom the FileSystem dock onto the sprite's Texture property in the Inspector. - Move the sprite with the Move tool (W) in the 2D view. Watch its Transform > Position change in the Inspector.
- Save with Ctrl+S as
res://levels/level.tscn, then press F6 to run just this scene. - While it runs, open the Scene dock's Remote tab: you can select the live sprite and change its properties in the running game.
The next lesson explains what you just built: Nodes, Scenes & the Scene Tree.
Test yourself
Which folder should you write save files to at runtime?
res://user://.godot/- The folder that holds the executable
Which renderer do you need for a web (HTML5) export?
- Forward+
- Mobile
- Compatibility
- Any of them
What should you NOT commit to Git in a Godot 4 project?
.tscnfiles.importfiles- The
.godot/folder project.godot