Xaml file reverted by UnityEditor?
Posted: 29 Jul 2025, 11:46
So this is a weird one.. I spent several hours last night working within a single Xaml file in my Unity project. All is well. This morning, I load the project and all my changes from the previous evening are gone. It was the only Xaml file using an Ellipse control, and searching in my entire project directory comes up empty for usages of Ellipse.
I was saving the file regularly as I was using the hot reload to view the changes. I was editing it within Visual Studio Code. I hadn't committed the file to source control and use git not Unity's source control, so there's no involvement or discarding of changes done by me.
The only thing I can think of, is that there is some caching of files happening and a previous version was loaded and overwrite the newer version? Or a bug within Rider 2025 where it didn't reload the file from disk after changes, and saved it's current version. Or I am going absolutely crazy.
Has this been seen before?
edit - actually, now that I think about it, I think this has been seen before using Rider 2025.. Okay lesson learnt, don't open the Xaml in both VSCode and Rider at same time!
I was saving the file regularly as I was using the hot reload to view the changes. I was editing it within Visual Studio Code. I hadn't committed the file to source control and use git not Unity's source control, so there's no involvement or discarding of changes done by me.
The only thing I can think of, is that there is some caching of files happening and a previous version was loaded and overwrite the newer version? Or a bug within Rider 2025 where it didn't reload the file from disk after changes, and saved it's current version. Or I am going absolutely crazy.
Has this been seen before?
edit - actually, now that I think about it, I think this has been seen before using Rider 2025.. Okay lesson learnt, don't open the Xaml in both VSCode and Rider at same time!