docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ConstructAssetBundleName

    ConstructAssetBundleName(AddressableAssetGroup, BundledAssetGroupSchema, BundleDetails, string)

    Extension point for asset bundle file naming. Invoked from ConstructAssetBundleName(AddressableAssetGroup, BundledAssetGroupSchema, BundleDetails, string) when the build pipeline resolves bundle names. The default implementation runs the standard ConstructAssetBundleName(AddressableAssetGroup, BundledAssetGroupSchema, BundleDetails, string) logic without recursion.

    Declaration
    protected virtual string ConstructAssetBundleName(AddressableAssetGroup assetGroup, BundledAssetGroupSchema schema, BundleDetails info, string assetBundleName)
    Parameters
    Type Name Description
    AddressableAssetGroup assetGroup

    Group being built, if any.

    BundledAssetGroupSchema schema

    Bundled asset schema controlling naming.

    BundleDetails info

    Bundle details including hash.

    string assetBundleName

    Base bundle name before group prefix and hashing.

    Returns
    Type Description
    string

    Final bundle name for the build output.

    Remarks

    Do not call GetConstructAssetBundleNameCallback() from overrides; use base or InvokeBaseConstructAssetBundleName(AddressableAssetGroup, BundledAssetGroupSchema, BundleDetails, string) to avoid re-entrancy.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)