static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
            {
                foreach (string str in importedAssets)
                {
                    if (str.Contains("StylizedWaterCore.cs"))
                    {
                        StylizedWaterCore.CheckUnityVersion();
                        VersionChecking.CheckForUpdate();

                        if (!compatibleVersion || untestedVersion)
                        {
                            SWS_Window.ShowWindow();
                        }
                    }
                }
            }
示例#2
0
        public static void ShowWindow()
        {
            EditorWindow editorWindow = EditorWindow.GetWindow <SWS_Window>(true, "Help", true);

            editorWindow.titleContent             = new GUIContent("Help");
            editorWindow.autoRepaintOnSceneChange = true;

            //Open somewhat in the center of the screen
            editorWindow.position = new Rect((Screen.width) / 2f + width, (Screen.height) / 2f, (width * 2), height);

            //Fixed size
            editorWindow.maxSize = new Vector2(width, height);
            editorWindow.minSize = new Vector2(width, 200);

            //Init
            StylizedWaterCore.VersionChecking.CheckForUpdate(false);
            StylizedWaterCore.CheckUnityVersion();

            editorWindow.Show();
        }
示例#3
0
            static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
            {
                foreach (string str in importedAssets)
                {
                    if (str.Contains("StylizedWaterCore.cs"))
                    {
                        StylizedWaterCore.CheckUnityVersion();
                        VersionChecking.CheckForUpdate();

                        if (!compatibleVersion || untestedVersion)
                        {
                            //Only show the window (with warnings) when the project opens
                            if (WindowAppeared == false)
                            {
                                SWS_Window.ShowWindow();
                            }
                            WindowAppeared = true;
                        }
                    }
                }
            }