You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
v1.3.4 Improve Archive Command and update UnityFileSystemAPI (#62)
Adds new archive inspection subcommands, self-contained archive metadata parsing, JSON output support, and C# wrappers for recently added UnityFileSystemApi functions.
New archive subcommands: info, header, blocks
Improved archive list with offsets
Archive command supports JSON output via -f Json.
archive extract supports --filter option
Self-contained archive metadata parsing
Extracted all WebBundle-specific code from Archive.cs into a dedicated WebBundleHelper class.
Update to UnityFileSystemApi C# wrappers
Added P/Invoke declarations and public wrappers for 7 new native API functions
(this is exposes TypeTree info that may be used in future PRs)
Copy file name to clipboardExpand all lines: Documentation/command-archive.md
+92-3Lines changed: 92 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,25 +6,112 @@ The `archive` command provides utilities for working with Unity Archives (AssetB
6
6
7
7
| Sub-Command | Description |
8
8
|-------------|-------------|
9
+
|[`info`](#info)| Display a high-level summary |
10
+
|[`header`](#header)| Display archive header information |
11
+
|[`blocks`](#blocks)| Display the data block list |
9
12
|[`list`](#list)| List contents of an archive |
10
13
|[`extract`](#extract)| Extract contents of an archive |
11
14
12
15
---
13
16
17
+
## info
18
+
19
+
Displays a high-level summary of a Unity Archive file, including compression ratio, file counts, and data sizes.
20
+
21
+
### Quick Reference
22
+
23
+
```
24
+
UnityDataTool archive info <archive-path> [options]
25
+
```
26
+
27
+
| Option | Description | Default |
28
+
|--------|-------------|---------|
29
+
|`<archive-path>`| Path to the archive file |*(required)*|
30
+
|`-f, --format <Text\|Json>`| Output format |`Text`|
31
+
32
+
### Example
33
+
34
+
```bash
35
+
UnityDataTool archive info scenes.bundle
36
+
UnityDataTool archive info scenes.bundle -f Json
37
+
```
38
+
39
+
---
40
+
41
+
## header
42
+
43
+
Displays the header information of a Unity Archive file, including format version, Unity version, file size, metadata compression, and archive flags.
44
+
45
+
Very old versions of the Unity Archive format are not supported. But the files created by all currently supported Unity versions should be compatible (and it was tested with files as old as Unity 2017).
> **Note:** The extracted files are binary SerializedFiles, not text. Use the [`dump`](command-dump.md) command to convert them to readable text format.
150
+
> **Note:** The extracted files are in binary formats, not text. If they are SerializedFiles then use the [`dump`](command-dump.md) command to convert them to readable text format. See also the [`serialized-file`](command-serialized-file.md) command.
0 commit comments