Analyzing AssetBundles
Inspect an analyze the structure of AssetBundles with Unity's analysis tools.
阅读时间1 分钟最后更新于 1 个月前
Unity provides several tools to inspect the internal structure and contents of AssetBundles to help with troubleshooting.
WebExtract and binary2text
WebExtract and binary2text are low-level command-line tools included with every Unity Editor installation.
- : Extracts the files embedded within an AssetBundle, similar to unzipping an archive. It creates a folder (named after the AssetBundle) containing its internal files in the same directory as the AssetBundle.
WebExtract - : Converts a binary
binary2text(the core Unity data format) into a human-readable text format, similar to Unity's YAML format.SerializedFile
You can also use UnityDataTools, which is an alternative to the WebExtract and binary2text tools.
For more information, refer to Analyze built assets.
BuildReport
The file (located at in your project directory) is a Unity that records the content of each AssetBundle. This contains detailed information about the build, including timings for build steps and a granular view of AssetBundle contents. You can view this file in the following ways:
BuildReportLibrary/LastBuild.buildreportSerializedFileSerializedFile- Build Report Inspector: Use the Build Report Inspector package to view the contents within the Editor.
BuildReport - Project Auditor: Project Auditor can view , but might struggle with large builds that involve many objects.
BuildReports - Programmatic Access: Use to access to the data within the
BuildReportfile.BuildReport - Text Format: Enable Preferences > Diagnostics > BuildReportingEditor > SerializeBuildReportAsText to output the directly as YAML text.
BuildReport