Exemple #1
0
        public static void Install()
        {
            CURRENTLY_INSTALLING = true;
            IS_INSTALLED         = false;

            //Add Layer for project olders than 2018.1
            {
                SetupLayer();
            }

            //Using URP with integrated PPS
            if (RenderPipelineInstallation.CurrentPipeline == RenderPipelineInstallation.Pipeline.URP && PostProcessingInstallation.Config == PostProcessingInstallation.Configuration.Integrated)
            {
                RenderPipelineInstallation.UnpackURPFiles();
            }
            //ShaderConfigurator.ConfigureForCurrentPipeline();

            PostProcessingInstallation.ConfigureURPIfNeeded();

            //If option is chosen, unpack demo content
            {
                if (Settings.installSampleContent)
                {
                    Demo.InstallSamples();
                }
                if (Settings.installDemoContent)
                {
                    Demo.InstallScenes();
                }
            }

            Installer.Log.Write("<b>Installation complete</b>");
            CURRENTLY_INSTALLING = false;
            IS_INSTALLED         = true;
        }
        //Store values in the volatile SessionState
        static void InitInstallation()
        {
            //Installer.CheckRootFolder();
            PackageVersionCheck.CheckForUpdate();
            RenderPipelineInstallation.CheckInstallation();
            PostProcessingInstallation.CheckPackageInstallation();

            installationVerified = true;
        }
Exemple #3
0
            public static void DrawPipeline()
            {
                string pipelineText = string.Empty;
                string pipelineName = "Built-in Render pipeline";

                SCPE_GUI.Status compatibilityStatus = SCPE_GUI.Status.Info;

                switch (RenderPipelineInstallation.CurrentPipeline)
                {
                case RenderPipelineInstallation.Pipeline.BuiltIn:
                    pipelineName = "Built-in Render pipeline";
                    break;

                case RenderPipelineInstallation.Pipeline.LWRP:
                    pipelineName = "Lightweight Render Pipeline " + RenderPipelineInstallation.SRP_VERSION;
                    break;

                case RenderPipelineInstallation.Pipeline.URP:
                    pipelineName = "URP " + RenderPipelineInstallation.SRP_VERSION;
                    break;

                case RenderPipelineInstallation.Pipeline.HDRP:
                    pipelineName = "HDRP " + RenderPipelineInstallation.SRP_VERSION;
                    break;
                }

                if (RenderPipelineInstallation.VersionStatus == RenderPipelineInstallation.Version.Compatible)
                {
                    pipelineText        = "Compatible";
                    compatibilityStatus = SCPE_GUI.Status.Ok;
                }
                if (RenderPipelineInstallation.VersionStatus == RenderPipelineInstallation.Version.Outdated)
                {
                    pipelineText        = "Outdated (Requires " + RenderPipelineInstallation.MIN_URP_VERSION + ")";
                    compatibilityStatus = Status.Error;
                }
                if (RenderPipelineInstallation.VersionStatus == RenderPipelineInstallation.Version.Incompatible)
                {
                    pipelineText        = "Unsupported";
                    compatibilityStatus = SCPE_GUI.Status.Error;
                }

                SCPE_GUI.DrawStatusBox(new GUIContent(pipelineName, EditorGUIUtility.IconContent("d_Profiler.Rendering").image), pipelineText, compatibilityStatus);

                if (RenderPipelineInstallation.VersionStatus == RenderPipelineInstallation.Version.Outdated)
                {
                    using (new EditorGUILayout.HorizontalScope())
                    {
                        if (SCPE_GUI.DrawActionBox("Update to " + RenderPipelineInstallation.LATEST_COMPATIBLE_VERSION, EditorGUIUtility.IconContent("BuildSettings.Standalone.Small").image))
                        {
                            RenderPipelineInstallation.UpdateToLatest();
                        }
                    }
                }
            }
Exemple #4
0
        private static void MenuItemLWRPInstall()
        {
#if PACKAGE_MANAGER
            RenderPipelineInstallation.CheckInstallation();

            if (RenderPipelineInstallation.VersionStatus == RenderPipelineInstallation.Version.Compatible)
            {
                Installer.DefineSymbol.Add(RenderPipelineInstallation.SRP_DEFINE_SYMBOL);
            }
#endif
        }
Exemple #5
0
        public static void Initialize()
        {
            IS_INSTALLED = false;
            Log.Clear();

            PackageVersionCheck.CheckForUpdate();
            UnityVersionCheck.CheckCompatibility();
            PackageManager.RetreivePackageList();

            RenderPipelineInstallation.CheckInstallation(); //Check first, in case URP is installed
            PostProcessingInstallation.CheckPackageInstallation();

            Demo.FindPackages();
        }
        public static void Initialize()
        {
            IS_INSTALLED = false;
            Log.Clear();

            PackageVersionCheck.CheckForUpdate();
            UnityVersionCheck.CheckCompatibility();
#if PACKAGE_MANAGER
            PackageManager.RetreivePackageList();
#endif
            PostProcessingInstallation.CheckPPSInstallation();
#if UNITY_2018_1_OR_NEWER
            RenderPipelineInstallation.CheckInstallation();
#endif
            //PPS Installation is checked before the folder is, so the installation type has been determined
            // CheckRootFolder();

            Demo.FindPackages();
        }