hi tammy was here lol
Before you clone the team repo, follow these instructions:
- Install GitHub Desktop, which also installs Git LFS: https://desktop.github.com (if you are using git via command line, install Git LFS: https://git-lfs.com)
- Submit your GitHub username in the Canvas assignment that is titled “Provide your GitHub account Name”
- You will receive an email with permission to access your team’s GitHub repo website
- (for GitHub Desktop) Goto the repo website, click the green Code button, and select “Open with GitHub Desktop” and clone the template project to your local machine (for git command line) Go to GitHub account settings and authorize your SSH key for CWRU SSO URL (https://docs.github.com/en/enterprise-cloud@latest/authentication/authenticating-with-saml-single-sign-on/authorizing-an-ssh-key-for-use-with-saml-single-sign-on) and then clone the final project template
Not everyone on your team may have the same path to UnityYAMLMerge (i.e. different operating systems or install locations). Because of this, we suggest you modify your local config to define the "unityyamlmerge" merge tool that this repository points to. To do this:
- Reveal hidden files on your operating system Windows 10: Open the File Explorer application and select View > Options > Change folder and search options and then select the View tab and, in Advanced settings, select Show hidden files, folders, and drives and OK
Windows 11: Open the File Explorer application and select View > Show > Hidden Items
MacOS: Click on Finder and press the keyboard combination Shift + Cmd + . (period key)
- Find and open your local config file inside of the hidden git folder
.git\config
: - Identify your version of unity (e.g.
2021.3.0f1
). This will replace the wordVERSION
in the paths commented below depending on your OS - Add the following text to the bottom of the file, subbing in the unitymergetool path:
[mergetool "unityyamlmerge"]
trustExitCode = false
#Replace <path to UnityYAMLMerge> in the next line with the following default locations (may be different depending on your Unity installation location)
# Installs using the Unity Hub (Default):
# Win: C:\\Program Files\\Unity\\Hub\\Editor\\VERSION\\Editor\\Data\\Tools\\UnityYAMLMerge.exe
# MacOS: /Applications/Unity/Hub/Editor/VERSION/Unity.app/Contents/Tools/UnityYAMLMerge
# Linux: /home/USERNAME/Unity/Hub/Editor/VERSION/Editor/Data/Tools/UnityYAMLMerge
cmd = '<path to UnityYAMLMerge>' merge -p "$BASE" "$REMOTE" "$LOCAL" "$MERGED"
Download the scripts from the link below and paste them into the hidden folder <your_repo>/.git/hooks/
- Pre-commit: https://github.com/NYUGameCenter/Unity-Git-Config/blob/master/pre-commit
- Post-commit: https://github.com/NYUGameCenter/Unity-Git-Config/blob/master/post-merge
This project was created using 2021.3.0f1
. When you open this project in Unity, Unity may say that it needs to upgrade the project. Given this is a bare-bones project, this is a safe action and you may allow Unity to continue. Overall, your entire team should be using the same version of Unity.
- Paste your project files into this repository on your local machine.
- Open the project on the target unity version, so all the files are modified as necessary.
- If you had unity collab or plastic, disable it now.
- Save your project and close unity.
- delete left over files from plastic or collab like x.meta.private or y.meta.private.meta (some files may be hidden so enable see hidden files)
- Commit and push.
- If you are having issues with .meta files check and modify your gitignore or make sure there are no empty folders.