Search Unity

AssetBundle build failed with Scriptable Build Pipline

Discussion in 'Asset Bundles' started by sunxdc15, Sep 7, 2020.

  1. sunxdc15

    sunxdc15

    Joined:
    Jan 2, 2014
    Posts:
    8
    Hello guys,
    Did anyone meet the problem when switch to Scriptable Build Pipline, there is nothing output except two log files? no error report.
    all is same as the Build-in, except replace with CompatibilityBuildPipeline

    Code (CSharp):
    1.            //var manifest = BuildPipeline.BuildAssetBundles(
    2.             var manifest = CompatibilityBuildPipeline.BuildAssetBundles(
    3.                 outputPath,
    4.                 AssetBundleBuildMap.GetAssetBundleBuildMap(),
    5.                 option | BuildAssetBundleOptions.DeterministicAssetBundle,
    6.                 target
    7.             );
    8.  
    ps:
    .json can't upload, so I changed the filename.
     

    Attached Files:

  2. tgrotte

    tgrotte

    Joined:
    Apr 17, 2019
    Posts:
    25
    I'm new to the Scriptable Build Pipeline, but I ran a test with a small dummy bundle. I did get bundle output and attached my build log file. It looks like yours didn't get as far in the process as mine, from quickly comparing the logs. Note that I used the ContentPipeline and not the Compatibility version that you used. My first suspicion just from looking at your code was that maybe the GetAssetBundleBuildMap was returning an empty set, but you seem to have items noted in your log file. I hope this is helpful in some way.
     

    Attached Files: