I have a problem with my projects: for no apparent reason, when I open them, I lose all the GameObject reference assignments in the Inspector. This has happened twice in the past few months, and it is very stressful.
I’m not an expert with Unity; is there a way to prevent this from happening? Is this a known issue that has been patched in the newer Unity versions?
Yes, try to update to the latest patch. I know that in Unity 2022.3.x were serializations issues that are solved regularly.
Don’t play with a fortune. Make backups:
2.1. Set Asset Serialization mode to “Force Text” to see differences in files.
2.2. Choose a CVS provider, learn its instructions and make your first commit. So if changes happen, you can see it and make a rollback.
P.S. Git is one of the version control systems that allows you to save every change in your project, saving the history.
E.g., I use Bitbucket + Sourcetree + Git, for example.
Also, people use GitHub + GitHub Desktop + Git or Unity Version Control.