docs.unity.cn
    Show / Hide Table of Contents

    Class AddressableAssetGroup

    Contains the collection of asset entries associated with this group.

    Inheritance
    Object
    AddressableAssetGroup
    Namespace: UnityEditor.AddressableAssets.Settings
    Syntax
    public class AddressableAssetGroup : ScriptableObject, IComparer<AddressableAssetEntry>, ISerializationCallbackReceiver

    Properties

    Name Description
    Default

    Is the default group.

    entries

    The collection of asset entries.

    Guid

    The group GUID.

    Name

    The group name.

    ReadOnly

    Is this group read only. This is normally false. Built in resources (resource folders and the scene list) are put into a special read only group.

    Schemas

    List of schemas for this group.

    SchemaTypes

    Get the types of added schema for this group.

    Settings

    The AddressableAssetSettings that this group belongs to.

    Methods

    Name Description
    AddSchema(Type, Boolean)

    Creates and adds a schema of a given type to this group. The schema asset will be created in the GroupSchemas directory relative to the settings asset.

    AddSchema(AddressableAssetGroupSchema, Boolean)

    Adds a copy of the provided schema object.

    AddSchema<TSchema>(Boolean)

    Creates and adds a schema of a given type to this group.

    CanBeSetAsDefault()

    Check if a group has the appropriate schemas and attributes that the Default Group requires.

    ClearSchemas(Boolean, Boolean)

    Removes all schemas and optionally deletes the assets associated with them.

    Compare(AddressableAssetEntry, AddressableAssetEntry)

    Compares two asset entries based on their guids.

    FindSchema(Type)

    Gets the index of a schema based on its specified type.

    GatherAllAssets(List<AddressableAssetEntry>, Boolean, Boolean, Boolean, Func<AddressableAssetEntry, Boolean>)

    Gathers all asset entries. Each explicit entry may contain multiple sub entries. For example, addressable folders create entries for each asset contained within.

    GetAssetEntry(String)

    Get an entry via the asset guid.

    GetAssetEntry(String, Boolean)

    Get an entry via the asset guid.

    GetSchema(Type)

    Gets an added schema of the specified type.

    GetSchema<TSchema>()

    Gets an added schema of the specified type.

    HasSchema(Type)

    Checks if the group contains a schema of a given type.

    HasSchema<TSchema>()

    Checks if the group contains a schema of a given type.

    IsDefaultGroup()

    Check to see if a group is the Default Group.

    OnAfterDeserialize()

    Converts data from serializable format.

    OnBeforeSerialize()

    Converts data to serializable format.

    RemoveAssetEntry(AddressableAssetEntry, Boolean)

    Remove an entry.

    RemoveSchema(Type, Boolean)

    Remove a given schema from this group.

    RemoveSchema<TSchema>(Boolean)

    Remove a given schema from this group.

    SetDirty(AddressableAssetSettings.ModificationEvent, Object, Boolean, Boolean)

    Marks the object as modified.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Friday, March 4, 2022
    Terms of use