NoesisView for Unity on macOS
Posted: 30 Oct 2023, 14:32
My main UI is a NoesisView component on the main Camera GameObject.
At the start, I have a StartMPGame xaml.
I'd like to switch that xaml out with the game HUD xaml at runtime.
I'm trying all this stuff but it's not working. I'm new to Noesis.
Qs) Is this even possible to do at runtime? If so, how do I do this properly?
Thank you.
Unity 2022.3.12f1
Noesis 3.2.2
At the start, I have a StartMPGame xaml.
I'd like to switch that xaml out with the game HUD xaml at runtime.
I'm trying all this stuff but it's not working. I'm new to Noesis.
Code: Select all
noesisView.enabled = false;
noesisView.Xaml.UnregisterDependencies();
noesisView.Content.DataContext = hudViewModel;
noesisView.Xaml = hudXaml;
noesisView.LoadXaml(true);
noesisView.enabled = true;
Thank you.
Unity 2022.3.12f1
Noesis 3.2.2