A general template for Godot 4 Mono. Includes:
- Project Settings and General Configuration for Export and Development.
- CI/CD builds for Linux and Windows.
- Core System Managers (Video, Audio, Scenes, Input) with persistent and atomic configurations.
- Loading Screens with Multithreaded Loading.
- Barebones Main and Pause Menu with Video, Audio and Input Settings.
- Simple and Performant Logging plugin
- Miscellaneous Utilities
Using .NET 8.0 and the latest stable release of Godot Mono.
- Godot Mono (Latest Stable Release)
- .NET 8.0
- (Optionally) Visual Studio Code and/or JetBrains Rider
- Create a new repository using the template
- Close the repository locally
- Open the
./utilities/setup/Setup.cs
file in Godot's inbuilt editor - Edit the
NEW_PROJECT_NAME
constant and save. Rebuild. Reload the project. - Run the setup script. Reload the project.
- Open and run the project in both Rider (with tracing) and VS Code
- You will either need to adjust the
launch.json
commands to use your godot path, or add your Godot installation to your PATH (and rename the godot executable togodot-mono.exe
) to run the project in VS Code - Uncomment relevant lines from the .gitignore
- Give actions more permissions in the github repository
- Git commit and push, verify that everything is working
- Create new repository using the template
- Clone repository locally
- Change project name in Project Settings/Config/Name and Dotnet/Project/Assembly Name (in advanced settings)
- Regenerate solution file in Tools/C#/Create C# Solution
- Edit the .csproj file to change the NET version to 8.0
- Rename the DotSettings files to the new assembly name
- Delete NetTemplate.sln and NetTemplate.csproj
- Change text editor to Rider in Editor Settings/Dotnet/Editor/External Editor
- Open and run the project in Rider (with tracing)
- Change the editor back to VS Code
- You will either need to adjust the
launch.json
commands to use your godot path, or add your Godot installation to your PATH (and rename the godot executable togodot-mono.exe
) - Open and run the project in VS Code
- Uncomment relevant lines from .gitignore
- Give actions more permissions in the github repository
- Git commit and push, verify that everything is working