dmacd10
Topic Author
Posts: 13
Joined: 01 Apr 2021, 01:34

Strange problem with Hot Reload in Unity

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? :)
 
User avatar
jsantos
Site Admin
Posts: 4123
Joined: 20 Jan 2012, 17:18
Contact:

Re: Strange problem with Hot Reload in Unity

08 Sep 2023, 17:48

Any chance you could reproduce this in a small sample so we can debug it?
 
dmacd10
Topic Author
Posts: 13
Joined: 01 Apr 2021, 01:34

Re: Strange problem with Hot Reload in Unity

13 Sep 2023, 04:37

Sorry, I cant even reproduce it outside of the one (seemingly cursed) file in my main project, not even sure where to start with a repro project.
 
User avatar
jsantos
Site Admin
Posts: 4123
Joined: 20 Jan 2012, 17:18
Contact:

Re: Strange problem with Hot Reload in Unity

13 Sep 2023, 19:58

If you could share your project (in a private ticket) I could have a look at it to bring light to this mystery.

But I am going to need very clear repro steps.

Thanks!

Who is online

Users browsing this forum: Bing [Bot] and 0 guests