*.asset always are shown as modified in GIT

Hello:

We are working with unity and GIT. When we change the branch and open Unity, *.assets always are shown as modified. When we reset them and come back to Unity, they are modified again. We have tried to commit them. This solve the problem, but when we change the branch again, the same problem. I suppose it is because of the reimport. We can live with this but is very annoying.

Any idea? Something we can do?

Thank you very much

Assets/AstarPathfindingProject/ExampleScenes/Example2_Terrain/Pathfinding_Terrain.asset
Assets/Fog of War/Examples/Terrain/Example.asset
Assets/HUD Text/Examples/Terrain/Terrain.asset
Assets/Terrain/Snow/TerrainSnow.asset
Assets/Terrain/Snow/TerrainSnow2.asset
Assets/Terrain/TerrainMap0.asset
Assets/Terrain/TerrainMapBig0.asset

3 Answers

3

It is because of the import, also make sure you have Meta data files on. Read the top paragraph here if you don’t.

We have done this before. I don’t think is that. I have to say it is only with terrains and when we reset the changes, Unity always show the progress bar “Re-serializing Assets” when we open again Unity

Did you ever find a solution to this? I'm experiencing the same issue where Unity (4.5.1f3 on Windows 8.1) is always causing our Terrain.asset file to be modified when putting focus on Unity. Reverting the .asset file just causes Unity to make it dirty again the next time Unity is selected or re-opened. Our terrain asset is embedded in the default scene hierarchy. It's possible we've added a script to our project somewhere that's running in editor mode causing it to be dirty, but I haven't found anything suspicious yet.

Experiecing the same thing. unity 4.6 with terrains. everything else does serialize properly to text (i have force text on)