I was having trouble where Git shows a lot of changes (for my case, about ~3000 diff change since I have many objects in the scene) after saving scene (.unity file) in Unity3D, even though there are no changes made on the scene file (.unity file).
Upon checking, I noticed Unity3D recompiled the scene file and some values are just in a different order.
How do we prevent this from happening?
Steps to reproduce:
- Open the scene file.
- Disable and enable back any GameObject (just to trigger Unity to think there're changes, so you can save the scene file).
- Save the scene file.