Ejemplo n.º 1
0
 protected override void OnClick(EventArgs e)
 {
     if (ControlList.data.current_pack == null)
     {
         MessageBox.Show("Please Select a Pack");
     }
     else
     {
         PackEditor pe = new PackEditor(ControlList.data.current_pack);
         pe.ShowDialog();
         pe.Dispose();
     }
 }
Ejemplo n.º 2
0
    void OnGUI()
    {
        PackEditor window = (PackEditor)EditorWindow.GetWindow(typeof(PackEditor));

        GUILayout.Label("版本");
        _version = GUILayout.TextField(_version);
        GUILayout.Space(12);

        GUILayout.Label("-----------------resource package-----------------");
        _deletemanifest = GUILayout.Toggle(_deletemanifest, "删除.manifest");
        GUILayout.BeginHorizontal();
        if (GUILayout.Button("Android", GUILayout.Height(30f)))
        {
            BuildAssetBundle(BuildTarget.Android, _deletemanifest);
            window.Close();
        }
        if (GUILayout.Button("Ios", GUILayout.Height(30f)))
        {
            BuildAssetBundle(BuildTarget.iOS, _deletemanifest);
            window.Close();
        }
        GUILayout.EndHorizontal();

        GUILayout.Space(20);
        GUILayout.Label("---------------------打包apk---------------------");
        _rebuildab = GUILayout.Toggle(_rebuildab, "重新打包AssetBundle资源,并删除.manifest");
        if (GUILayout.Button("打包.apk", GUILayout.Height(30f)))
        {
            BuildPackage(BuildTarget.Android);
            window.Close();
        }

        GUILayout.Space(20);
        GUILayout.Label("---------------------服务器专用升级包---------------------");
        if (GUILayout.Button("Update升级包", GUILayout.Height(30f)))
        {
            BuildUpdatePackage();
            window.Close();
        }
    }
Ejemplo n.º 3
0
    static void Init()
    {
        PackEditor window = (PackEditor)EditorWindow.GetWindow(typeof(PackEditor));

        window.Show();
    }