samc
Topic Author
Posts: 74
Joined: 21 Aug 2019, 19:22

"Installing NoesisGUI 2.2.3" in Unity keeps popping up

22 Aug 2019, 02:56

I'm just trying to get Noesis to work with Unity 2019.1.9f1 and this dialog keeps popping up that says "Installing NoesisGUI 2.2.3". There is a slow progress bar that takes about 5 minutes and then Unity is finally accessible. After loading one of the Noesis sample scenes and hitting "play" the entire process is repeated. Reopening Unity also causes the entire process to repeat.

The only thing I did that isn't plain vanilla is that I stuck Noesis in our "Assets/Vendor/" folder rather than just in "Assets/" (we are trying to keep root level of our workspace clean).

Suggestions?

thanks,
sam
 
samc
Topic Author
Posts: 74
Joined: 21 Aug 2019, 19:22

Re: "Installing NoesisGUI 2.2.3" in Unity keeps popping up

22 Aug 2019, 03:24

As a side note, it looks like Noesis is trying to generate new assets for fonts in some unity packages we use. For example, progrids. Then there are all sorts of errors getting spit out into unity because it can't generate meta files for those assets because the folder is read only. Is there a way to preven Noesis from touching anything in Packages/ ?

sam
 
User avatar
jsantos
Site Admin
Posts: 3919
Joined: 20 Jan 2012, 17:18
Contact:

Re: "Installing NoesisGUI 2.2.3" in Unity keeps popping up

22 Aug 2019, 19:31

As a side note, it looks like Noesis is trying to generate new assets for fonts in some unity packages we use. For example, progrids. Then there are all sorts of errors getting spit out into unity because it can't generate meta files for those assets because the folder is read only. Is there a way to preven Noesis from touching anything in Packages/ ?
This has been fixed in the incoming 2.2.4 (planned for this week) (#1508). As a workaround, open Assets\NoesisGUI\Plugins\Editor and modify the function ImportAssets with:
    private static void ImportAssets(string[] assets, UpdateProgress d)
    {
        int numFonts = assets.Count(asset => asset.StartsWith("Assets/") && IsFont(asset));
        int numXamls = assets.Count(asset => asset.StartsWith("Assets/") && IsXaml(asset));
        int numAssets = numFonts + numXamls;

        if (numAssets > 0)
        {
            Log("→ Import assets (XAMLs: " + numXamls + " Fonts: " + numFonts + ")");

            float delta = 1.0f / numAssets;
            float progress = 0.0f;

            if (numXamls > 0)
            {
                NoesisUnity.Init();

                // Theme
                NoesisXaml theme = NoesisSettings.Get().applicationResources;
                if (theme != null)
                {
                    Log("Scanning for theme changes...");

                    bool changed;
                    ImportXaml(theme.source, false, out changed);

                    if (changed)
                    {
                        Log("↔ Reload ApplicationResources");
                        NoesisUnity.LoadApplicationResources();
                    }
                }
            }

            foreach (var asset in assets)
            {
                // Make sure read-only folders from Package Manager are not processed
                if (asset.StartsWith("Assets/"))
                {
                    try
                    {
                        if (IsFont(asset))
                        {
                            ImportFont(asset, true);
                        }
                        else if (IsXaml(asset))
                        {
                            ImportXaml(asset, true);
                        }
                    }
                    catch (Exception e)
                    {
                        Debug.LogException(e);
                    }

                    if (d != null && (IsFont(asset) || IsXaml(asset)))
                    {
                        d(progress, asset);
                        progress += delta;
                    }
                }
            }

            Log("← Import assets");
        }
    }
 
User avatar
jsantos
Site Admin
Posts: 3919
Joined: 20 Jan 2012, 17:18
Contact:

Re: "Installing NoesisGUI 2.2.3" in Unity keeps popping up

22 Aug 2019, 19:33

I'm just trying to get Noesis to work with Unity 2019.1.9f1 and this dialog keeps popping up that says "Installing NoesisGUI 2.2.3". There is a slow progress bar that takes about 5 minutes and then Unity is finally accessible. After loading one of the Noesis sample scenes and hitting "play" the entire process is repeated. Reopening Unity also causes the entire process to repeat.

The only thing I did that isn't plain vanilla is that I stuck Noesis in our "Assets/Vendor/" folder rather than just in "Assets/" (we are trying to keep root level of our workspace clean).
We are aware of this (#1330), for now moving the packageis not allowed. We will fix it.

PS: please, try to open different threads for each issue you find.

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Semrush [Bot] and 9 guests