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. |