Skip to content

AssetPack name is taken from bundlePath #143

@MichalDolezalAG

Description

@MichalDolezalAG

We are using unity addressables that generate bundle files with .bundle extension. So when we tried to add assetPack with that extension, we got error InvalidBundleName.
So we found a workaround, where we directly add to AssetPacks in AssetPackConfig:

config.AssetPacks.Add(addressableGroupBase.BundleName, new AssetPack()
				{
					AssetBundleFilePath = addressableGroupBase.FilePath,
					DeliveryMode = addressableGroupBase.InstallTimeDelivery ? AssetPackDeliveryMode.InstallTime : AssetPackDeliveryMode.OnDemand
				});

This worked just fine until we updated AssetDelivery from 1.4.0 to 1.5.0. Then, after running BundleTool, Unity builds entire game and at the very end it gets exception InvalidBundleName - asset pack name "PATH_TO_BUNDLE" is invalid.

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