Updating project
How to update
To update your Unity project you can click SmartifyOS > Check for Update
and then click on Check for Update
.
If there is an update it will show you a changelog and which files will change. Then you can just click on Sync Repository
.
How to upgrade Unity version
You can't use the update tool to update the Unity version since Unity has to be closed to do so.
- Close the Unity Editor and Unity Hub
- Open your Terminal in the
SmartifyOS
directory and rungit fetch
andgit pull
(see: Errors while updating if you get any errors) - Open up the Unity Hub again
- Click on the ⚠️ icon of the project and install the needed Unity Editor version (make sure to tick
Linux Build support (Mono)
underAdd modules
)
How file changes are handled
Files modified by you will never be overwritten!
Errors while updating
If you modified one of the files and it was also modified on the remote you will get an error while trying to update.
Error saying to commit or to stash changes
If you get an error like this you first need to commit your local changes. If you want an relatively easy to use GUI tool to do this you can use VS Code
Merge conflict
If you run the updater (or git pull
) again after committing you may get an Merge conflict in the files that you changed an which where also changed on the remote.
To fix this open the project in VS Code. Under the Source control
tab you will see these files (they should have a ❗ icon). You then can click on them and on the button Resolve in Merge Editor
and fix the conflict.
Here is a tutorial for the Merge Editor (explanation of editor starts at 02:18
)