JoeyD
Topic Author
Posts: 4
Joined: 04 Dec 2015, 22:39

Noesis 2 and Unity 5.5 - LoadXaml(path) Returning Null

01 Jun 2017, 18:46

I am having difficulty upgrading from v1.2.6 to v2.0.1f . We are using Unity 5.5.3. The tutorial states that we can add PreLoaded Xamls to the Settings:
XAMLs to register at startup. They can be loaded using Noesis.GUI.LoadXaml() without referrencing them in scripts or copying to /Resources"
- This is what I've done. It works in the editor when I click "Reimport All" in the Settings. That's good :)
- If I open the editor and don't reimport all, then Unity cannot load the xaml using "Noesis.GUI.LoadXaml()". That is bad :(
- If I create a standalone build, I get the same issue. That is really bad :(

I'm not sure why Reimporting All xaml files is necessary every time I load up Unity. I have > 90 xaml files and do not want to move them to "/Resources". I have added them all to the preloadedXamls array and am attempting to load them via
var xaml = Noesis.GUI.LoadXaml(path);
But if I do not "Reimport All" then the above call returns null.

I'm obviously missing something. Anybody have an ideas?

Is there something I'm doing wrong?
 
User avatar
sfernandez
Site Admin
Posts: 3250
Joined: 22 Dec 2011, 19:20

Re: Noesis 2 and Unity 5.5 - LoadXaml(path) Returning Null

01 Jun 2017, 20:27

I just tried to use GUI.LoadXaml with a xaml placed in the Preloaded list and it works as expected, even after reopening Unity editor or with a standalone application.

First of all, could you please try with the latest 2.0.2f2 version of NoesisGUI?
Make sure the "Postprocessor Enable" option is checked under NoesisSettings asset. This will generate xaml assets automatically every time the source xaml changes, without the need to click "Reimport All" button (that should only be necessary if an unexpected error corrupted xaml assets).

If you still have problems please create a ticket in our bugtracker and attach the files required to reproduce it.
 
JoeyD
Topic Author
Posts: 4
Joined: 04 Dec 2015, 22:39

Re: Noesis 2 and Unity 5.5 - LoadXaml(path) Returning Null

01 Jun 2017, 21:19

Thanks. I will try those things...

Who is online

Users browsing this forum: sfernandez and 4 guests