- Unity 2021.3
- git
- csharpier
- Github Actions
- Git Hooks
- dotnet 5
- Clone this repo
- Install Unity Hub
- Install Unity 2021.3
- Install the tools found in the manifest here
dotnet tool restore
dotnet husky install
- Run
git config --global core.autocrlf true
- This helps with the difference between windows and unix line endings (I think)
- Add the unity tools directory https://docs.unity3d.com/Manual/SmartMerge.html to your path. We specifically want
UnityYAMLMerge.exe
available to git
General installation instructions can be found here https://csharpier.com/docs/Installation. A custom filewatcher can be setup in Rider that makes it so csharpier is ran on save.
To do that you can
- Go to
Settings > Tools > File Watcher
- Hit the plus
- Follow my setup here
- Go to
Editor > General > Typing Assist
and disableAuto-format on semicolon
andAuto-format on closing brace
. This will help prevent rider for doing conflicting styling - Go to
Tools > Actions on Save
and disableReformat and Cleanup code
if it's enabled.
- Make everything a prefab
- Figure out other best practices