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
AssetBundle variant - doc and clear error handler (#148)
Add documentation for this special feature.
Analyze does not allow duplicate serialized files so show a clear error message to explain why only a single AssetBundle from a group from a group of variants is analyzed.
?$"Duplicate archive name '{duplicateName}'. Each analyzed archive must have a unique name; only a single build can be analyzed at a time."
17
17
:$"Duplicate SerializedFile name '{duplicateName}'. Only a single build can be analyzed at a time; the same SerializedFile name cannot be analyzed twice.")
$"AssetBundle variant of '{analyzedArchive}', which was already analyzed (both contain SerializedFile '{serializedFileName}'). Only one variant of each bundle can be analyzed.");
Copy file name to clipboardExpand all lines: Documentation/command-analyze.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -188,6 +188,10 @@ or
188
188
```
189
189
Skipping build2\assetbundle: Duplicate archive name 'assetbundle'. Each analyzed archive must have a unique name; only a single build can be analyzed at a time.
190
190
```
191
+
or
192
+
```
193
+
Skipping ui.sd: AssetBundle variant of 'ui.hd', which was already analyzed (both contain SerializedFile 'CAB-5d40f7cad7c871cf2ad2af19ac542994'). Only one variant of each bundle can be analyzed.
194
+
```
191
195
192
196
**analyze only supports a single build at a time.** Unity resolves references between SerializedFiles
193
197
by file name, so two files that share a name are indistinguishable to those references — there is no
@@ -203,7 +207,7 @@ This is expected when the input contains more than one build, and in these commo
203
207
| Cause | What to do |
204
208
|-------|------------|
205
209
| Multiple builds passed together (or nested in one directory) | Analyze each build into its own database |
206
-
| AssetBundle variants (same content, different variant) |Analyze each variant separately|
210
+
|[AssetBundle variants](assetbundle-format.md#assetbundle-variants) (same content, different variant) |Expected within a single build; analyze one variant of each bundle, or each variant into its own database|
207
211
| Hashed AssetBundle file names across two builds | The file names differ but the inner SerializedFile (`CAB-<hash>`) is shared — analyze each build separately |
208
212
| Player scenes with the same file name (`level0`, …) from different builds | Analyze each build separately |
0 commit comments