Page 1 of 1

Upgrade from 1.2 to 2.0 - Unity - SOLVED, some notes for others

Posted: 11 Nov 2017, 09:37
by itech4ever
first of all, glad to see Noesis's back!

I am now using 1.2 for Unity that I downloaded directly from Asset Store. Everything went well but I want to move the NoesisGUI folder out of StreamingAsset so that users won't see those "compiled" xaml file directly. I then realized that I need to use 2.0 if I want that feature.

I tried to upgrade but noticed that the changes are relatively huge, e.g., Noesis GUI Panel script is now gone. so I am wondering if there is patch or tutorials/steps/instructions to guide me to do the upgrade? Thanks a lot!

Best,
Neo

Update:

Upgraded under Windows 7 with Unity 5.6.1f1 - Success.

Basically, you need to handle all the compiler errors, which are basically related to changing the Noesis Panel to Noesis View script.

Then, you need to add D3D11 to the graphics APIS for windows, not D3D9.

Re: Upgrade from 1.2 to 2.0 - Unity

Posted: 13 Nov 2017, 11:37
by jsantos
Hello! We have never been gone : )

Effectively the changes are huge but the idea is very similar. You basically need to fix all C# compiler errors and then use the new component for rendering Noesis. It is a new one, but the properties are almost the same. I recommend you carefully reading this tutorial. Pay special attention to the user control part.

Sorry to say there is no automatic upgrade mechanism but we are here to help.

Re: Upgrade from 1.2 to 2.0 - Unity

Posted: 21 Nov 2017, 04:04
by itech4ever
Yes, this is a very good procedure. Thanks and will let you know if I get stuck somewhere :-)

Re: Upgrade from 1.2 to 2.0 - Unity

Posted: 21 Nov 2017, 21:16
by jsantos
Thanks! Let us know please.

Re: Upgrade from 1.2 to 2.0 - Unity

Posted: 02 Dec 2017, 03:47
by itech4ever
Thanks! Let us know please.
Okay, everything went very well with very few changes, however, after the upgrade, I could not even run the sample scene such as login.

What I found initially was that when run my scene, I could not see the XAML dialog showing up. No messages, including errors or warnings, were found. I then opened the login scene and found out that the dialog could not be loaded either.

I am using Unity 5.6.1f1 and DX9. Any clues for me to examine further?

Thanks!

Update: If I go to Tools -> NoesisGUI -> Settings -> Reimport All. I got error message like the following:

Assets/NoesisGUI/Samples/ControlGallery/Samples/DockPanel.xaml</b>: Xaml not found 'Assets/NoesisGUI/Samples/ControlGallery/Samples/SimpleStyle.xaml'
Assets/NoesisGUI/Samples/ControlGallery/Samples/Palette.xaml</b>: Unable to load font 'Fonts/#K22 Ambelyn Condensed'

Re: Upgrade from 1.2 to 2.0 - Unity

Posted: 02 Dec 2017, 13:38
by ivan_b
I also had this problem when using DX9 but after switching to DX11 the sample scene should work.

Re: Upgrade from 1.2 to 2.0 - Unity

Posted: 04 Dec 2017, 12:00
by jsantos
Effectively, D3D9 is no longer supported in NoesisGUI 2.0+.
Assets/NoesisGUI/Samples/ControlGallery/Samples/DockPanel.xaml</b>: Xaml not found 'Assets/NoesisGUI/Samples/ControlGallery/Samples/SimpleStyle.xaml'
Assets/NoesisGUI/Samples/ControlGallery/Samples/Palette.xaml</b>: Unable to load font 'Fonts/#K22 Ambelyn Condensed'
I would say you are mixing folders from the old package. Could you erase all NoesisGUI folders are reimport again?

Re: Upgrade from 1.2 to 2.0 - Unity

Posted: 09 Dec 2017, 02:13
by itech4ever
Ah I see. I will try and let you guys know. It should be the cause.

Update:

All good now. Deleted D3D9 in the Graphics APIs for Windows and added D3D11, all things are working now. Thanks guys!

Re: Upgrade from 1.2 to 2.0 - Unity - SOLVED, some notes for others

Posted: 09 Dec 2017, 02:27
by jsantos
Thanks for the feedback!