Example #1
0
    //命令行构建替换资源
    static void CommandLineBuildRebunldeAsset()
    {
        List <KeyValue> commandLineArgs = GetCommandLineVariables();
        BuildTarget     buildTarget     = WrapBuildTarget(GetKeyToValue(commandLineArgs, "target"));
        string          outPath         = GetKeyToValue(commandLineArgs, "out_dir");

        BUILD_LOG("start to building rebundle:" + outPath);
        AssetsBuilderTools.BuildReviewRebundleAssetTo(outPath, buildTarget);
        BUILD_LOG("rebundle build over");
    }
Example #2
0
    //命令行构建资源
    static void CommandLineBuildAsset()
    {
        List <KeyValue> commandLineArgs = GetCommandLineVariables();
        BuildTarget     buildTarget     = WrapBuildTarget(GetKeyToValue(commandLineArgs, "target"));
        string          outPath         = GetKeyToValue(commandLineArgs, "out_dir");

        SwitchPlatform(buildTarget);

        BUILD_LOG("start to building asset:" + outPath);
        AssetsBuilderTools.BuildAllBundleToPath(outPath, buildTarget);
        BUILD_LOG("asset build over");
    }
    public static void BuildReviewRebundleAsset()
    {
        string outDir = UnityFrame.GlobalPath.AssetBasesPath + "ReviewAssets/Bundle";

        AssetsBuilderTools.BuildReviewRebundleAssetTo(outDir, TargetPlat);
    }