internal static InitializerWindow Show(Initializer.PackageData packageData) { GetWindow <InitializerWindow>().Close(); var window = CreateInstance <InitializerWindow>(); window.titleContent.text = "Package Initializer"; window.packageData = packageData; window.ShowUtility(); return(window); }
static void Initialize() { var packageData = new Initializer.PackageData(AssetDatabase.GetAssetPath(Selection.activeObject)); InitializerWindow.Show(packageData); }