Top 10 Unity Pull Request Problems
Introduction
This list is based on my personal experience working in big and small Unity projects.
Top Pull Request Problems
- Inside an UI prefab a GameObject was deactivated which should have stayed activated.
- A BOM was added to the beginning of a file
- Line endings do not match -> use a config to sync this setting across platforms
- A folder meta file is missing.
- There are unused imports in C# files.
- The import settings for an asset (e.g. a Sprite) are incorrect.
- An unwanted change to a TMPro asset -> fix this one by moving TMPro to a different folder (search online which folder
- Sprite added to sprite atlas but Sprite atlas not updated -> Save project and push unpushed changes.
- Scene merge conflicts -> solve by storing data in smaller chunks, e.g. in prefabs (
Environment.prefab
,UserInterface.prefab
) or ScriptableObjects. - UserEditor settings were pushed -> add this file to the .gitignore to solve thos issue.