예제 #1
0
    private static void CreateWindow()
    {
        AssetBundleEditor wnd = EditorWindow.GetWindow <AssetBundleEditor>(true);

        wnd.minSize = new Vector2(500, 780);
        wnd.Show();
    }
예제 #2
0
    private static void OpenAssetBundleWindow()
    {
        AssetBundleEditor ABEditor = GetWindow <AssetBundleEditor>("AssetBundles");

        ABEditor.Init();
        ABEditor.Show();
    }
예제 #3
0
    static void Open()
    {
        AssetBundleEditor window = GetWindow <AssetBundleEditor>("AssetBundleEditor");

        window.minSize = new Vector2(1055, 730);
        window.maxSize = new Vector2(1055, 730);
        //window.position = new Rect(Screen.width / 2 - 100, Screen.height / 2, 0, 0);
        window.Init();
        window.Show();
    }
 private static void OpenAssetBundleWindows()
 {
     if (bundleEditorWindows == null)
     {
         bundleEditorWindows = GetWindow <AssetBundleEditor>();
         bundleEditorWindows.titleContent.text = "AssetBundle Editor";
         bundleEditorWindows.minSize           = new Vector2(750, 700);
         bundleEditorWindows.Show();
     }
     else
     {
         bundleEditorWindows.Close();
     }
 }