Skip to content

Fix support for AssetBundle Variants #48

Description

@SkowronskiAndrew

This issue was discovered in another copy of the code internal to Unity, but I think this could break some functionality in BuildReportInspector so i'm logging this issue to track it.

The code to determine the AssetBundle name from the SerializedFile name assumes this is a 1-1 mapping.
However, when there is a AssetBundle variant, the same SerializedFile name is used for each variant (but different assetbundles).

This would cause the data structure to throw exceptions.

The exception could be avoided by permitting multiple bundles per file.

To be very accurate the code might need to be changed to use another approach to match back from the serialized file to the correct assetbundle. The "BuiltAssetBundleInfoSet" information inside the BuildReport probably could do this (but AFAIK its not exposed in the public API)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions