Repository navigation
[#149] Name archives by their path relative to the scanned directory #150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
0dd4b32
82743f9
5d22bad
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,6 +64,15 @@ UnityDataTool analyze /path/to/bundles --skip-references --skip-crc | |
|
|
||
| See also [Analyze Examples](analyze-examples.md). | ||
|
|
||
| ## How archives are named | ||
|
|
||
| The `archives.name` column, and the `archive` column of the views built on it, holds the path of | ||
| the archive relative to the directory that was analyzed, using `/` separators. An AssetBundle name | ||
| may itself be a path, and `BuildPipeline.BuildAssetBundles` writes such a bundle into a matching | ||
| folder structure, so a build containing `dlc/weapons/main` and `dlc/armor/main` records those two | ||
| names rather than two bundles called `main`. An archive named directly on the command line, rather | ||
| than found by scanning a directory, is recorded under its bare file name. | ||
|
|
||
|
SkowronskiAndrew marked this conversation as resolved.
Outdated
|
||
| --- | ||
|
|
||
| ## What Can Be Analyzed | ||
|
|
@@ -202,6 +211,10 @@ When analyze encounters a second file or archive with a name it has already proc | |
| of the messages above, **skips that file or archive** (counting it as a failed file), and continues | ||
| with the rest of the input. The already-analyzed copy is kept; the duplicate's content is ignored. | ||
|
|
||
| Two bundles that share a file name in different sub-folders of the analyzed directory are not | ||
| duplicates: archives are named by their relative path, so `dlc/weapons/main` and `dlc/armor/main` | ||
| are both analyzed. See [How archives are named](#how-archives-are-named). | ||
|
|
||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good. I think this example error above should be removed: And It seems this section needs more revision to make sure it is accurate (duplicate archives are ok, but serialized files need to be unique. Hence it is still true that we cannot analyze two versions of the same build and AssetBundle variants trigger an error.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. AGENT: Reworked the section. Renamed it to "Duplicate SerializedFile name", led with SerializedFile uniqueness as the real constraint, and dropped the claim that archive names must be unique. I kept the |
||
| This is expected when the input contains more than one build, and in these common cases: | ||
|
|
||
| | Cause | What to do | | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.