docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddToGroup

    AddToGroup(Object, IList<LocaleIdentifier>, AddressableAssetSettings, bool)

    Add an asset to an UnityEditor.AddressableAssets.Settings.AddressableAssetGroup. The asset will be moved into a group which either matches SharedGroup or SharedGroupName.

    Declaration
    public virtual AddressableAssetEntry AddToGroup(Object asset, IList<LocaleIdentifier> locales, AddressableAssetSettings aaSettings, bool createUndo)
    Parameters
    Type Name Description
    Object asset

    The asset to be added to a group.

    IList<LocaleIdentifier> locales

    List of locales that depend on this asset or null if the asset is used by all.

    AddressableAssetSettings aaSettings

    The Addressables setting that will be used if a new group should be added.

    bool createUndo

    Should an Undo record be created?

    Returns
    Type Description
    AddressableAssetEntry

    The asset entry for the added asset.

    In This Article
    Back to top
    Copyright © 2025 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)