public static void Init() { MegascansImporterWindow window = (MegascansImporterWindow)EditorWindow.GetWindow(typeof(MegascansImporterWindow)); GUIContent header = new GUIContent(); header.text = " Bridge Plugin v" + version; header.image = (Texture)MSLogo; header.tooltip = "Megascans Bridge Plugin."; window.titleContent = header; window.maxSize = size * 20f; window.minSize = size; window.Show(); }
static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths) { // if(!MegascansUtilities.isLegacy()) // { // Debug.Log("Automatically changing API Compatibility Level."); // PlayerSettings.SetApiCompatibilityLevel(EditorUserBuildSettings.selectedBuildTargetGroup, ApiCompatibilityLevel.NET_4_6); // } // loop through imported files, see if it's a .qxl file. for (int i = 0; i < importedAssets.Length; ++i) { if (importedAssets[i].Contains("MegascansImporterWindow.cs")) { MegascansImporterWindow.Init(); } } }