Strange problem with Hot Reload in Unity
Posted: 08 Sep 2023, 01:46
Most of my XAMLs now hot reload properly, but one of them, a UserControl embedded in a tab item, refuses to reload. I can see in the console that Noesis is reloading the Xaml itself when the file changes, but the visual tree isnt updated. To diagnose this, I duplicated the control in a file with a different name but otherwise identical xaml and code-behind content and added it to the same tabcontrol parent as the non-reloading control. This duplicated control *does* reload properly when edited. Smelling a cache issue, I tried renaming the file and class of the original control. But still it wont reload! Deleting the view .xaml, .cs, reimporting, and re-adding them and reimporting again did not affect the result. My top two hypothesis at this point are:
1) Aliens
2) ...
So, I have a workaround, but any clues what might be going on here? :)
1) Aliens
2) ...
So, I have a workaround, but any clues what might be going on here? :)