static void Import() { if (window == null) { window = PackageImporter.GetWindow <PackageImporter>(); } window.assetdataList = PackageImporter.Load(); window.ShowPopup(); window.Focus(); }
public static void Init() { if (File.Exists(onceCheckPath) == false) { var assetdataList = PackageImporter.Load(); if (assetdataList.Any(item => item.pathList.Count != 0)) { window = PackageImporter.GetWindow <PackageImporter>(); window.assetdataList = assetdataList; Import(); } File.Create(onceCheckPath); } EditorApplication.delayCall -= Init; }