The archive command provides utilities for working with Unity Archives (AssetBundles and web platform .data files).
| Sub-Command | Description |
|---|---|
list |
List contents of an archive |
extract |
Extract contents of an archive |
Lists the SerializedFiles contained within an archive.
UnityDataTool archive list <archive-path>
UnityDataTool archive list scenes.bundleExtracts the contents of an archive to disk. This is similar to Unity's WebExtract tool.
UnityDataTool archive extract <archive-path> [options]
| Option | Description | Default |
|---|---|---|
<archive-path> |
Path to the archive file | (required) |
-o, --output-path <path> |
Output directory | archive |
UnityDataTool archive extract scenes.bundle -o contentsOutput files:
contents/BuildPlayer-SampleScene.sharedAssets
contents/BuildPlayer-SampleScene
contents/BuildPlayer-Scene2.sharedAssets
contents/BuildPlayer-Scene2
Note: The extracted files are binary SerializedFiles, not text. Use the
dumpcommand to convert them to readable text format.
| Command | Output | Use Case |
|---|---|---|
archive extract |
Binary SerializedFiles, .resS anything else inside the archive content | When you need all the raw files inside an archive |
dump |
text | When you want to inspect object content |
The dump command can directly process archives without extracting first.