Need help with asset-bundle-analyzer?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

140 Stars 29 Forks GNU General Public License v3.0 36 Commits 6 Opened issues


This tool extracts useful information from Unity asset bundles and stores the information in an SQLite database.

Services available


Need anything else?

Contributors list


This tool extracts useful information from Unity asset bundles and stores the information in an SQLite database.

Getting started

You need Python 3 to run this program (it probably works on Python 2 as well, but it will be less efficient). You will also need a tool such as DB Browser for SQLite to query the database.

This is a command line tool with two mandatory arguments. The first one is the path of the Unity tools folder and the second is the path of the root folder containing the asset bundles to analyze. For example:

python /Applications/Unity/ ~/projects/MyGame/AssetBundles

Note that you must use the same tools that have been used to build the asset bundles, otherwise it will fail.

Optional arguments

  • -p PATTERN, --pattern PATTERN: wildcard pattern used to recursively find asset bundles in the specified folder (default: * )
  • -o OUTPUT, --output OUTPUT: name of the output database file (default: database)
  • -k, --keep-temp: keep the files generated by WebExtract and binary2text in the asset bundle folder (default: False)
  • -r, --store-raw: store raw json objects in 'raw_objects' database table (default: False)

Database structure

The main table is called objects and it contains a row for every object in the asset bundles. It's best to use the object_view view instead because it includes useful information from other tables as well. The primary key is called id and it doesn't represent anything, it's just a unique integer. The natural key would have been the (file, object_id) tuple, but dealing with composite keys complicates all queries so a simpler key is used instead.

The columns in object_view are: * object_id: Unity object id * bundle: name of the asset bundle containing this object * file: name of the file (in the asset bundle) containing this object * class_id: Unity class id of that object * type: type name * name: name of the object, if available (components don't have names) * game_object: id of the parent game object, if there's one (components have a parent game object) * size: size of the serialized object, before compression (the real size in the asset bundle may be smaller if LZ4 or LZMA compression is used) * serialized_fields: the total number of serialized fields of this object

Type-specific views

For some types, there is an additional view with type-specific information: * animation_view for AnimationClips: legacy (0 = mecanim, 1 = legacy) * audioclipview for AudioClips: bitspersample, frequency (Hz), channels, type (loading type), format * mesh_view for Meshes: indices, vertices, compression (0 = uncompressed, 1 = low, 2 = medium, 3 = high), rwenabled * **shaderview** for Shaders: counts of properties, subshaders, subprograms and uniqueprograms (the number of unique GPU programs that are packed with this shader as some subprograms may share the same code), keywords (all keywords that this shader supports) * **shadersubprogramview** for Shader subprograms: apitype, pass, hwtier (from quality settings), progtype (fragment, vertex, etc.), progkeywords (keyword set for each subprogram). * **textureview** for Texture2D: format, width, height, mipcount, rwenabled

Additional views

Additional views are also provided: * viewbreakdownby_type: total number and total size of all objects per type * viewbreakdownshaders: for every shader, the number for instances (> 1 means duplicate), total size and list of asset bundles containing it (separated by line breaks) * viewmipmappedtextures: list of all textures with mipmaps, useful to spot UI texture that should not have mipmaps * viewpotentialduplicates: list of all potentially duplicated objects and in which asset bundles (there may be false positives) * viewreferencestodefaultmaterial: list all game objects having a reference to the default material and indirectly referencing the Default shader * viewrwmeshes/textures: list all meshes (or textures) with Read/Write enabled * viewsuspiciousaudio_clips: list all clips that are streamed and should not, or the opposite

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.