Linux command
godot 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start Godot editor
godot
Open project
godot --path [project-dir]
Run project
godot --path [project-dir] --main-pack [game.pck]
Export project
godot --headless --export-release "[preset]" [output]
Run script
godot --script [script.gd]
说明
Godot is the Godot game engine editor and runtime. It provides a complete game development environment with 2D/3D rendering, physics, scripting, and export capabilities. The engine uses GDScript, C#, or C++ for game logic and supports export to desktop, mobile, and web platforms. Headless mode enables CI/CD pipelines for automated builds and testing.
参数
- --path _DIR_
- Project directory.
- --editor, -e
- Start editor mode.
- --headless
- No window mode.
- --export-release _PRESET_
- Export with preset.
- --script _SCRIPT_
- Run script.
- --help
- Display help information.
FAQ
What is the godot command used for?
Godot is the Godot game engine editor and runtime. It provides a complete game development environment with 2D/3D rendering, physics, scripting, and export capabilities. The engine uses GDScript, C#, or C++ for game logic and supports export to desktop, mobile, and web platforms. Headless mode enables CI/CD pipelines for automated builds and testing.
How do I run a basic godot example?
Run `godot` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --path _DIR_ do in godot?
Project directory.