Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Do you delete Asset Bundles before build?

Discussion in 'Asset Bundles' started by yohanscritch, Sep 2, 2020.

  1. yohanscritch

    yohanscritch

    Joined:
    Apr 30, 2020
    Posts:
    28
    Hey,

    My game contains asset bundles that I generated into files.

    Now, when I want to build my game I obviously don't need these assets to be part of the build.

    How do you handle that? Do.you delete them?
     
  2. FranFndz

    FranFndz

    Joined:
    Sep 20, 2018
    Posts:
    178
    you mean the assetbundle files?
    In my case i build them outside the Asset Folders.

    You can also have resources folder inside editor folder that dont go inside the build.

    btw, if im not wrong, if the assets are not references they dont go inside the build. i may be wrong here, but if you have a folder called AssetsBundles/mybundle and have no reference, then it wont be inside the buid.
     
  3. Neto_Kokku

    Neto_Kokku

    Joined:
    Feb 15, 2018
    Posts:
    1,751
    Ideally you should generate your bundles outside the assets folder, specially if they are not supposed to be distributed with your builds (downloaded later, for example). Bundles that you are going to distribute should go into the StreamingAssets folder.

    Deleting bundles negates one of the biggest advantages of using bundles in the first place: Unity will (usually) not rebuild a bundle of the assets in it haven't changed, reducing build times.