In order to build the unity-explorer project you will need to ensure you have SSH setup with correct access rights to the private repository.
To do this:
-
Generating a new SSH key: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key
-
Adding a new SSH key to your account: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account
-
To be able to correctly import the UPM packages that need SSH make sure to follow this short guide: https://docs.unity3d.com/Manual/upm-config-ssh-git-win.html
Notes:
- You may need to update the known_hosts file in your ssh keys directory: https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/
- If the repo cloning is done with a terminal, you may need to open it as an administrator to avoid a
fetch-pack: unexpected disconnect while reading sideband packeterror - If during the Unity project loading Unity throws an error window mid-loading with a
fetch-pack: unexpected disconnect while reading sideband packeterror, try using the "retry" button, it has proved to work...
GPG keys are used to sign commits and verify that it was sent from your computer with your user. To create your GPG key, follow the instructions on this page: https://docs.github.com/en/authentication/managing-commit-signature-verification/generating-a-new-gpg-key
Do not forget to do everything in the GitBash console.
- If you get this error:
gpg: skipped "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX": No secret key gpg: signing failed: No secret key error: gpg failed to sign the data fatal: failed to write commit object
Add this to the .gitconfig file (at C:/Users/<user>/):
[gpg]
program = "C:\\Program Files\\Git\\usr\\bin\\gpg.exe"
- If you get this error when sending a commit:
GPG does not find the agent after restarting the PC: gpg: error running '/usr/lib/gnupg/keyboxd': probably not installed gpg: failed to start keyboxd '/usr/lib/gnupg/keyboxd': Configuration error gpg: can't connect to the keyboxd: Configuration error gpg: error opening key DB: No Keybox daemon running gpg: skipped "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX": Input/output error gpg: signing failed: Input/output error error: gpg failed to sign the data fatal: failed to write commit object
Open the GitBash console and execute:
gpg --list-secret-keys --keyid-format SHORTTo verify that GPG signing is working, send a commit attached to a GitHub task (putting its task #number in the description) and check how the Verified tag appears next to the hash of the commit.
By default LODs are currently disabled in Explorer Alpha because they are too big to be packaged with the build. They can however be downloaded and integrated manually for testing.
-
LODs can be downloaded here (latest): https://drive.google.com/file/d/1YoYpi-FhXL3IxNTOptazWquvv4VRCLbL/view?usp=drive_link
-
To get LODs working you just need to extract the above into the following folder:
StreamingAssets/AssetBundles/lods
Versioned hooks live in .githooks/. Git does not run them from a checkout on its own, so enable them once per clone:
bash scripts/install-git-hooks.sh # sets git config core.hooksPath .githooksCurrently installed:
pre-commit— when a commit adds comment lines to C# files, runsscripts/lint/clean-up-excessive-ai-comments.shin interactive mode. It asks Claude Code to trim excessive comments introduced by the branch (the repo rule: a comment describes only the code it annotates, never callers or other scopes), shows the proposed edits as a diff and asks to keep, discard, or abort. Requires theclaudeCLI; without it the hook prints a hint and lets the commit through. Bypass one commit withgit commit --no-verifyorSKIP_AI_COMMENT_CLEANUP=1.
The same script has a non-interactive go mode for batch clean-ups and agents. Run it with --help for the full argument reference.
For documentation on GitHub workflows, the Python build handler, and Unity Cloud setup, see Build & CI.
