Ejemplo n.º 1
0
        void DrawInstallation()
        {
            if (!installationVerified)
            {
                InitInstallation();
            }

            SetWindowHeight(420f);

            EditorGUILayout.Space();

            using (new EditorGUILayout.VerticalScope(EditorStyles.helpBox))
            {
                SCPE_GUI.Installation.DrawPackageVersion();
                SCPE_GUI.Installation.DrawUnityVersion();
                SCPE_GUI.Installation.DrawPlatform();
                SCPE_GUI.Installation.DrawColorSpace();
                SCPE_GUI.Installation.DrawPipeline();
                SCPE_GUI.Installation.DrawPostProcessing();
            }

            EditorGUILayout.Space();

            using (new EditorGUILayout.HorizontalScope())
            {
                EditorGUILayout.LabelField(" ");

                if (GUILayout.Button("Open installer"))
                {
                    InstallerWindow.ShowWindow();
                }
            }
        }
Ejemplo n.º 2
0
 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.º 3
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.º 5
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.º 6
0
 private static void MenuItemOpenInstaller()
 {
     InstallerWindow.ShowWindow();
 }