Search Unity

Any tutorial of more granular Asset Bundle creation?

Discussion in 'Editor & General Support' started by FranFndz, Aug 29, 2020.

  1. FranFndz

    FranFndz

    Joined:
    Sep 20, 2018
    Posts:
    178
    Hi,

    Im making a tool and i need to create asset bundles of specifics folder, right now every time i create asset bundle unity scan all the project and create all assets bundle.

    Is there any tutorial or documentation on how to specify what assets to create the bundle and not scanning all the game?

    Thanks!
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,909
  3. FranFndz

    FranFndz

    Joined:
    Sep 20, 2018
    Posts:
    178
    thanks!

    but thats the same as creating full project asset bundle.

    im trying to do something like:

    AssetList<String>
    AsseList.Add(AssetPath)

    assetbundle -> create bundle from AssetList (Ignore anything else)
     
  4. FranFndz

    FranFndz

    Joined:
    Sep 20, 2018
    Posts:
    178
    i found this

    AssetBundleBuild[]buildMap = new AssetBundleBuild[];
    BuildPipeline.BuildAssetBundles(_assetBundleDirectory, buildMap, BuildAssetBundleOptions.None, BuildTarget.iOS);

    its working