Ejemplo n.º 1
0
    public static void BuildAssetBundlesForCurSetting()
    {
        var buildTarget = EditorUserBuildSettings.activeBuildTarget;
        var outputPath  = PackageUtils.GetCurBuildSettingOutputPath();

        BuildAssetBundles(buildTarget, outputPath);
    }
        static public void ToolsClearOutput()
        {
            var  buildTargetName = PackageUtils.GetCurPlatformName();
            var  channelName     = PackageUtils.GetCurSelectedChannel().ToString();
            bool checkClear      = EditorUtility.DisplayDialog("ClearOutput Warning",
                                                               string.Format("Clear output assetbundles will force to rebuild all : \n\nplatform : {0} \nchannel : {1} \n\n continue ?", buildTargetName, channelName),
                                                               "Yes", "No");

            if (!checkClear)
            {
                return;
            }
            string outputPath = PackageUtils.GetCurBuildSettingOutputPath();

            GameUtility.SafeDeleteDir(outputPath);
            Debug.Log(string.Format("Clear done : ", outputPath));
        }
        static public void ToolsToolsOpenOutput()
        {
            string outputPath = PackageUtils.GetCurBuildSettingOutputPath();

            EditorUtils.ExplorerFolder(outputPath);
        }