Set up a mod project with GameHub
δΈζ | English
Run this command at the repository root to replay the examples through the local Unity MCP.
python Docs/Manual/manual/tools/tutorials.py run mod-env-setup-hub
For a first project, follow the GitHub SDK setup guide. If your GameHub build offers Create Project, the steps below explain how to open its output.
1. Create the project with GameHub
- In GameHub, select Create Project and choose an empty folder.
- Open the output directory and copy the path to the folder containing
Assets,Packages/manifest.json, andProjectSettings. If there is an outer folder withUnityProjectinside, use the inner path and keep its neighboring local dependencies in place. - Read
m_EditorVersionin the generated project's ownProjectSettings/ProjectVersion.txtand follow the Unity version guide. GameHub uses the editor version declared by its project template.
2. Open the project with Unity Hub
In Unity Hub, select Projects β Add β Add project from disk and choose the path you copied. Open the project and wait for import and compilation to finish. If your GameHub has no project creation option, use the official SDK ZIP. The MCP recipe checks the open project.
Click to expand MCP actionsClick to collapse MCP actions
[
{
"tool": "editor_status",
"arguments": {},
"expect": {
"contains": "\"projectPath\""
}
},
{
"tool": "invoke",
"arguments": {
"path": "static:System.IO.File/ReadAllText",
"args": [
"ProjectSettings/ProjectVersion.txt"
]
},
"expect": {
"contains": "m_EditorVersion:"
}
},
{
"tool": "invoke",
"arguments": {
"path": "static:System.IO.File/Exists",
"args": [
"Packages/manifest.json"
]
},
"expect": {
"contains": "(Boolean) True"
}
}
]
3. Bind the Steam game content
Set the Steam game folder if you need the game assets in the Editor. Start with vehicle basics, the map wizard, or the voice pack walkthrough.