Re: 1.3 BETA4: SetTheme and ResourceDictionary
Posted: 16 Feb 2017, 09:15
The plan is only doing the restart in the C# side, but maintain the same C++ initialization (because having a proper init/shutdown in C++ is not possible right now). We are following this approach in Unity and it is working fine. Your scenario is a bit different because Unity is unloading and reloading all the assemblies, but I would say it is going to work for your game with minor modifications.We abandoned that approach and reload UI completely by restarting NoesisGUI (so we needed to modify C# SDK code even more to support that approach and still have some issues like memory access violation, @jsantos promised us a proper NoesisGUI reload API in 1.3.x). Of course it leads to the UI state loss but in our case the game restores the state quickly (but not completely, so some opened menus will be closed).
We expect to provide a new beta with this functionality this week.