Пример #1
0
        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);
        }
Пример #2
0
        static void Initialize()
        {
            var packageData = new Initializer.PackageData(AssetDatabase.GetAssetPath(Selection.activeObject));

            InitializerWindow.Show(packageData);
        }