From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:Unity asset bundle (UnityFS)" |
|---|
| claim | "AssetStudio parses the signatures UnityWeb and UnityRaw with a legacy header for every format version except 6 (it does not test for a version below 6; version 6 with these signatures goes to the UnityFS parser). The legacy header shares the prefix of UnityFS (cstring signature, big-endian uint32 version, player and engine strings) followed by: from version 4 a 16-byte hash and uint32 crc, uint32 minimum streamed bytes, uint32 header size, uint32 levels to download before streaming, int32 level count with (compressed, uncompressed) uint32 pairs, uint32 complete file size (2+), uint32 file info header size (3+); the data starts at the header size. UnityWeb stores it as one LZMA stream (only the last level's sizes are used), UnityRaw uncompressed; the directory is int32 count of (cstring path, uint32 offset, uint32 size). The 'UnityArchive' signature is not handled (TODO)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Unity asset bundle (UnityFS)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "signature UnityWeb or UnityRaw" |
|---|
| effect | "Only the last level's sizes are used by AssetStudio" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "ReadHeaderAndBlocksInfo, ReadBlocksAndDirectory and the signature switch" |
|---|
| repo | "https://github.com/Perfare/AssetStudio" |
|---|
| commit | "d158e864b556b5970709c2a52e47944d53aa98a2" |
|---|
| path | "AssetStudio/BundleFile.cs" |
|---|
| lines | "69-138, 157-188" |
|---|
|
| type | "source" |
|---|
| detail | "Read the BundleFile constructor switch, ReadHeaderAndBlocksInfo and ReadBlocksAndDirectory in full." |
|---|
| repo | "https://github.com/Perfare/AssetStudio" |
|---|
| commit | "d158e864b556b5970709c2a52e47944d53aa98a2" |
|---|
| path | "AssetStudio/BundleFile.cs" |
|---|
| lines | "58-200" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Legacy UnityWeb and UnityRaw header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T23:02:12.346Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T07:40:13.421Z" |
|---|
| result | "confirmed" |
|---|
| method | "Fetched AssetStudio/BundleFile.cs at AssetStudio d158e864b556 and read lines 40-205: constructor switch (UnityArchive TODO; UnityWeb/UnityRaw go to UnityFS only when version == 6), ReadHeaderAndBlocksInfo (hash+crc from v4, last level kept, v2 complete size, v3 file info header size, position = header size), ReadBlocksAndDirectory (UnityWeb LZMA, directory of path/offset/size). Matches." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T04:50:55.197Z" |
|---|
| summary | "AssetStudio sends UnityWeb/UnityRaw to the legacy parser for every format version except 6; it has no 'below 6' test. Read the signature switch and ReadHeaderAndBlocksInfo." |
|---|
| changed | |
|---|
|
|
|---|