My team and I currently work or Unity 5.3.4f1 and are looking to upgrade to the latest unity version.
My concern is how to approach the version control (we are using Git). For example if we (the team) are all on the same version of the project and then I upgrade the project to the latest version of unity and then push the changes to the repository, if the rest of the team pull the changes and open the project with the latest unity version everything should be fine right? Would this be the correct approach? Or should we all upgrade the project and then push and merge? This last option sounds like it could get messy…
Our workflow for major upgrades (ie 5.4 to 5.5, not 5.4.3 to 5.4.4) is this:
A programmer merges inn all of the changes from the rest of the team, and upgrades.
They then fix any compilation errors or other problems that would prevent work from happening due to the upgrade.
Then everyone else upgrades and merges.
Having a cache server on the local network seems to really speed up this process.
Take some extra time with this one. Unity changed the format of how components are serialized from 5.4 to 5.5, so there’s no way to backport scene changes from 5.5 to earlier versions without a major inconvenience.
Just one question, when you say the above, wouldn’t the rest of the team have the compilation errors after upgrading it (before merging)? Or do you ignore this and merge directly after upgrading?
So your team members should:
1: Close Unity
2: Merge the upgraded version of the project
3: Upgrade Unity
4: Open the project
2 and 3 can happen in any order. If your other members upgrade and then open the unupgraded project, they’ll have to wait for the upgrade time (hour++ if it’s a big project), which is never fun.