static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
 {
     foreach (string str in importedAssets)
     {
         if (str.Contains("Installer.cs"))
         {
             InstallerWindow.ShowWindow();
         }
     }
 }
Ejemplo n.º 2
0
            public static void Initialize()
            {
                if (EditorApplication.isPlaying)
                {
                    return;
                }

                //Package has been imported, but window may not show due to console errors
                //Force window to open after compilation is complete
                if (HAS_APPEARED == false)
                {
                    InstallerWindow.ShowWindow();
                    HAS_APPEARED = true;
                }
            }
            public static void Initialize()
            {
                if (EditorApplication.isPlaying)
                {
                    return;
                }

                //Package has been imported, but window may not show due to console errors
                //Force window to open after compilation is complete
                if (HAS_APPEARED == false)
                {
                    InstallerWindow.ShowWindow();
                    HAS_APPEARED = true;
                }

                //For 2018.1+, after compiling the PostProcessing package, check for installaton again
                //if (PostProcessingInstallation.IS_INSTALLED == false) PostProcessingInstallation.CheckInstallation();
            }
Ejemplo n.º 4
0
            static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
            {
                foreach (string str in importedAssets)
                {
#if REQUIRE_INSTALLER
                    if (str.Contains("Installer.cs"))
                    {
                        InstallerWindow.ShowWindow();
                    }
#endif
#if URP && !PPS
                    if (str.Contains("SCPE.cs")) //Check for SCPE file, since it has root folder location
                    {
                        //When importing with the URP active, prompt installer if URP package wasn't unpacked
                        if (!URPUnpacked())
                        {
                            InstallerWindow.ShowWindow();
                        }
                    }
#endif
                }
            }
Ejemplo n.º 5
0
 private static void MenuItemOpenInstaller()
 {
     InstallerWindow.ShowWindow();
 }