Noesis 2.0 and Unity 5.6
Posted: 05 Apr 2017, 12:15
Hi there,
Yesterday, I decided to “upgrade” my full project, switching from Unity 5.4 / Noesis 1.2 to the latest Unity 5.6 and Noesis 2.0.
I updated the syntax of my views and my various usercontrols, so that they load the XAML content from the constructor. The syntax is now OK, scripts are compiling flawlessly.
At first, I ran into a first major issue : If I tried to merge resource dictionaries being included in a subfolder of a Resources folder, it seems that Noesis wasn’t able to find them :
Eg. :
Has to be replace by :
Once this issue found, I was able to display any XAML file that was not referencing any of my UserControl (no issue with CustomControl) : But, any of my xaml file referencing an user control doesn’t seem able to load the given UserControl.
In the Unity Workspace, the new XAML preview doesn’t appear, and I have the following message :
The message disappears if I force the xaml .asset regeneration (eg by deleting the XAML and asset file, switching to Unity, and undoying the file deletion so that it recreate the asset file). In this case, the UserControl appears correctly in the Unity property panel preview.
When running, it may either show the following error :
Or even crash Unity.
Any idea ?
Regards,
Roland
Yesterday, I decided to “upgrade” my full project, switching from Unity 5.4 / Noesis 1.2 to the latest Unity 5.6 and Noesis 2.0.
I updated the syntax of my views and my various usercontrols, so that they load the XAML content from the constructor. The syntax is now OK, scripts are compiling flawlessly.
At first, I ran into a first major issue : If I tried to merge resource dictionaries being included in a subfolder of a Resources folder, it seems that Noesis wasn’t able to find them :
Eg. :
Code: Select all
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="../../Resources/XAML/RD_CommonColors.xaml"/>
</ResourceDictionary.MergedDictionaries>
Code: Select all
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="../../Common/XAML/RD_CommonColors.xaml"/>
</ResourceDictionary.MergedDictionaries>
In the Unity Workspace, the new XAML preview doesn’t appear, and I have the following message :
Code: Select all
NoesisException: Xaml not found 'Assets/Covirtua/Orthophonie/Common/Controls/WaitingScreenControl.xaml'
Noesis.Error.Check () (at Assets/NoesisGUI/Plugins/API/Core/NoesisError.cs:21)
When running, it may either show the following error :
Code: Select all
Exception: Xaml not found 'Assets/Covirtua/Orthophonie/Common/Controls/WaitingScreenControl.xaml'
NoesisXaml.Load () (at Assets/NoesisGUI/Plugins/NoesisXaml.cs:26)
NoesisView.LoadXaml (Boolean force) (at Assets/NoesisGUI/Plugins/NoesisView.cs:311)
NoesisView.OnEnable () (at Assets/NoesisGUI/Plugins/NoesisView.cs:370)
Any idea ?
Regards,
Roland