Legacy Documentation: Version 2018.2 (Go to current version)
Troubleshooting
Reducing the file size of your build
Other Versions

Unity Asset Bundle Browser tool

NOTE: This tool is extra functionality to Unity’s standard functionality. To access it, you have to download it from GitHub and install it separately from the standard Unity Editor’s download and install.

This tool enables the user to view and edit the configuration of assetAny media or data that can be used in your game or Project. An asset may come from a file created outside of Unity, such as a 3D model, an audio file or an image. You can also create some asset types in Unity, such as an Animator Controller, an Audio Mixer or a Render Texture. More info
See in Glossary
bundles for their Unity project. It will block editing that would create invalid bundles, and inform you of any issues with existing bundles. It also provides basic build functionality.

Use this tool as an alternative to selecting assets and setting their asset bundle manually in the inspector. It can be dropped into any Unity project with a version of 5.6 or greater. It will create a new menu item in Window > AssetBundle Browser. The bundle configuration and build functionality are split into two tabs within the new window.

Requires Unity 5.6+

Usage - Configure

Note: this utility is in a pre-release state, and accordingly we recommend creating a backup of your project before using it.

This window provides an explorer like interface to manage and modify asset bundles in your project. When first opened, the tool will parse all bundle data in the background, slowly marking warnings or errors it detects. It does what it can to stay in sync with the project, but cannot always be aware of activity outside the tool. To force a quick pass at error detection, or to update the tool with changes made externally, hit the Refresh button in the upper left.

The window is broken into four sections: Bundle List, Bundle Details, Asset List, and Asset Details.

Bundle List

Left hand pane showing a list of all bundles in the project. Available functionality:

  • Select a bundle or set of bundles to see a list of the assets that will be in the bundle in the Asset List pane.

  • Bundles with variants are a darker grey and can be expanded to show the list of variants.

  • Right-click or slow-double-click to rename bundle or bundle folder.

  • If a bundle has any error, warning, or info message, an icon will appear on the right side. Mouse over the icon for more information.

  • If a bundle has at least one sceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
    See in Glossary
    in it (making it a scene bundle) and non-scene assets explicitly included, it will be marked as having an error. This bundle will not build until fixed.

  • Bundles with duplicated assets will be marked with a warning (more information on duplication in Asset List section below)

  • Empty bundles will be marked with an info message. For a number of reasons, empty bundles are not very stable and can dissapear from this list at times.

  • Folders of bundles will be marked with the highest message from the contained bundles.

  • To fix the duplicated inclusion of assets in bundles, you can:

    • Right click on a single bundle to move all assets determined to be duplicates into a new bundle.

    • Right click on multiple bundles to either move the assets from all selected bundles that are duplicates into a new bundle, or only those that are shared within the selection.

    • You can also drag duplicate assets out of the Asset List pane into the Bundle List to explicitly include them in a bundle. More info on this in the Asset List feature set below.

  • Right click or hit DEL to delete bundles.

  • Drag bundles around to move them into and out of folders, or merge them.

  • Drag assets from the Project Explorer onto bundels to add them.

  • Drag assets onto empty space to create a new bundle.

  • Right click to create new bundles or bundle folders.

  • Right click to “Convert to Variant”

    • This will add a variant (initially called “newvariant”) to the selected bundle.

    • All assets currently in selected bundle will be moved into the new variant

    • ComingSoon: Mismatch detection between variants.

Icons indicate if the bundle is a standard or a scene bundle.

Icon for standard bundle
Icon for standard bundle
Icon for scene bundle
Icon for scene bundle

Bundle Details

Lower left hand pane showing details of the bundles(s) selected in the Bundle List pane. This pane will show the following information if it is available:

  • Total bundle size. This is a sum of the on-disk size of all assets.

  • Bundles that the current bundle depends on

  • Any messages (error/warning/info) associated with the current bundle.

Asset List

Upper right hand pane providing a list of assets contained in whichever bundles are selected in the Bundle List. Available functionality:

  • View all assets anticipated to be included in bundle. Sort asset list by any column header.

  • View assets explicitly included in bundle. These are assets that have been assigned a bundle explicitly. The inspectorA Unity window that displays information about the currently selected GameObject, Asset or Project Settings, alowing you to inspect and edit the values. More info
    See in Glossary
    will reflect the bundle inclusion, and in this view they will say the bundle name next to the asset name.

  • View assets implicitly included in bundle. These assets will say auto as the name of the bundle next to the asset name. If looking at these assets in the inspector they will say None as the assigned bundle.

    • These assets have been added to the selected bundle(s) due to a dependency on another included asset. Only assets that are not explicitly assigned to a bundle will be implicitly included in any bundles.

    • Note that this list of implicit includes can be incomplete. There are known issues with materials and textures not always showing up correctly.

    • As multiple assets can share dependencies, it is common for a given asset to be implicitly included in multiple bundles. If the tool detects this case, it will mark both the bundle and the asset in question with a warning icon.

    • To fix the duplicate-inclusion warnings, you can manually move assets into a new bundle or right click the bundle and selecting one of the “Move duplicate” options.

  • Drag assets from the Project Explorer into this view to add them to the selected bundle. This is only valid if only one bundle is selected, and the asset type is compatable (scenes onto scene bundles, etc.)

  • Drag assets (explicit or implicit) from the Asset List into the Bundle List (to add them to different bundles, or a newly created bundle).

  • Right click or hit DEL to remove assets from bundles (does not remove assets from project).

  • Select or double-click assets to reveal them in the Project Explorer.

A note on including folders in bundles. It is possible to assign an asset folder (from the Project Explorer) to a bundle. When viewing this in the browser, the folder itself will be listed as explicit and the contents implicit. This reflects the priority system used to assign assets to bundles. For example, say your game had five prefabs in Assets/PrefabsAn asset type that allows you to store a GameObject complete with components and properties. The prefab acts as a template from which you can create new object instances in the scene. More info
See in Glossary
, and you marked the folder “Prefabs” as being in one bundle, and one of the actual prefabs (“PrefabA”) as being in another. Once built, “PrefabA” would be in one bundle, and the other four prefabs would be in the other.

Asset Details

Lower right hand pane showing details of the asset(s) selected in the Asset List pane. This pane cannot be interacted with, but will show the following information if it is available:

  • Full path of asset

  • Reason for implicit inclusion in bundles if it is implicit.

  • Reason for warning if any.

  • Reason for error if any.

Troubleshooting

  • Can’t rename or delet a specific bundle. This is occasionally caused when first adding this tool to an existing project. Please force a reimport of your assets through the Unity menu system to refresh the data.

External Tool Integration

Other tools that generate asset bundle data can choose to integrate with the browser. Currently the primary example is the Asset Bundle Graph Tool. If integrations are detected, then a selection bar will appear near the top of the browser. It will allow you to select the Default data source (Unity’s AssetDatabase) or an integrated tool. If none are detected, the selector is not present, though you can add it by right-clicking on the tab header and selecting “Custom Sources”.

Usage - Build

The Build tab provides basic build functionality to get you started using asset bundles. In most profressional scenarios, users will end up needing a more advanced build setup. All are welcome to use the build code in this tool as a starting point for writing their own once this no longer meets their needs. Interface:

  • Build Target - Platform the bundles will be built for

  • Output Path - Path for saving built bundles. By default this is AssetBundles/. You can edit the path manually, or by selecting “Browse”. To return to the default naming convention, hit “Reset”.

  • Clear Folders - This will delete all data from the build path folder prior to building.

  • Copy to StreamingAssets - After the build is complete, this will copy the results to Assets/StreamingAssets. This can be useful for testing, but would not be used in production.

  • Advanced Settings

    • Compression - Choose between no compressionA method of storing data that reduces the amount of storage space it requires. See Texture Compression3D Graphics hardware requires Textures to be compressed in specialised formats which are optimised for fast Texture sampling. More info
      See in Glossary
      , Animation CompressionThe method of compressing animation data to significantly reduce file sizes without causing a noticable reduction in motion quality. Animation compression is a trade off between saving on memory and image quality. More info
      See in Glossary
      , Audio Compression, Build Compression.
      See in Glossary
      , standard LZMA, or chunk-based LZ4 compression.

    • Exclude Type Information - Do not include type information within the asset bundle

    • Force Rebuild - Rebuild bundles needing to be built. This is different than “Clear Folders” as this option will not delete bundles that no longer exist.

    • Ignore Type Tree Changes - Ignore the type tree changes when doing the incremental build check.

    • Append Hash - Append the hash to the asset bundle name.

    • Strict Mode - Do not allow the build to succeed if any errors are reporting during it.

    • Dry Run Build - Do a dry run build.

  • Build - Executes build.



  • 2017–05–18 Page published with limited editorial review

  • New feature in 5.6

Did you find this page useful? Please give it a rating:

Troubleshooting
Reducing the file size of your build