Was ist das GODOT-Dateiformat?
Eine .godot-Datei ist die Projektkonfigurationsdatei für die Godot Spiel-Engine, die quelloffene 2D- und 3D-Engine, die von der Godot Foundation gepflegt wird. Sie heißt fast immer project.godot, und der Ordner, der sie enthält, ist das Projektstammverzeichnis. Godot verweist auf jedes Asset in diesem Ordner mit dem Pfadpräfix res://, sodass diese eine Datei definiert, wo ein Projekt beginnt.
Die Datei ist reiner UTF-8-Text in einem Layout im INI-Stil. Sie beginnt mit einer config_version-Zeile und gruppiert dann Einstellungen in Abschnitte wie [application], [display], [input] und [rendering]. Der Abschnitt [application] enthält die wichtigen Werte: config/name für den Projekttitel, run/main_scene für die Szene, die beim Start geladen wird (eine .tscn-Datei), und config/icon. Die config_version-Nummer regelt die Kompatibilität: Godot 3.x schreibt 4 und Godot 4.x schreibt 5, und der Editor öffnet kein Projekt, dessen Version neuer ist, als er versteht.
Die Dateiendung wurde mit Godot 3.0 im Jahr 2018 eingeführt und ersetzte die ältere engine.cfg, die in Godot 2.x verwendet wurde.
Sicherheit
RISIKO: LOWproject.godot is a plain-text configuration file with no executable code, so opening it in a text editor is safe. The risk comes from the surrounding project, not the file: a Godot project can contain GDScript or C# and autoload scripts that run when the project is opened in the editor. Only open projects from sources you trust, and inspect the [autoload] entries and scripts before running an unfamiliar one.
Formatdetails
kurz gefasstProgramme zum Öffnen von GODOT-Dateien
Technische Details
technische Spezifikation| Encoding | UTF-8 text |
| Byte order | N/A (text) |
| Container | INI-like sections with [section] headers and key=value entries; keys often use slash paths such as application/config/name |
| Typical size | 1 KB to a few KB |
| Structure | Plain-text configuration listing project-wide settings. Opens with a header comment and a config_version line, followed by sections like [application], [display], [input], [rendering], [autoload] and [global]. The [application] section holds config/name (project title), run/main_scene (path to the startup scene, e.g. res://main.tscn) and config/icon. |
| Integrity | None built in |
| Platforms | Windows, macOS, Linux, Android, Web |
| Config Version | Version tag inside the file that gates compatibility. Godot 3.x uses config_version=4, Godot 4.x uses config_version=5. An engine will refuse to open a file whose config_version is newer than it supports. |
| Notes | The file also acts as the project marker: the folder containing project.godot is the project root, and paths inside the engine are addressed relative to it via the res:// prefix. It replaced the earlier engine.cfg (Godot 2.x and before) when Godot 3.0 switched to the .godot extension. |
| Structure Summary Extra | Godot loads a binary project.godot first if present and falls back to the text form; the text form is what is committed to version control. |
| Veröffentlicht | 2018 (Godot 3.0) |
| Neueste Version | config_version=5 (Godot 4.x) |
| Spezifikation | docs.godotengine.org |
GODOT-Konvertierungen
Community Q&A
von Nutzern gefragtNoch keine Fragen - stellen Sie die erste Frage zu GODOT-Dateien.