Class AddressableAssetGroup
Contains the collection of asset entries associated with this group.
Inherited Members
Namespace: UnityEditor .AddressableAssets .Settings
Assembly: Unity.Addressables.Editor.dll
Syntax
[Serializable]
public class AddressableAssetGroup : ScriptableObject, IComparer<AddressableAssetEntry>, ISerializationCallbackReceiver
Properties
Name | Description |
---|---|
Default | Is the default group. |
Flagged |
If true, this Group is likely marked 'Cannot Change Post Release', but has a modified asset since the previous build. |
Guid | The group GUID. |
Name | The group name. |
Read |
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. |
Schema |
Get the types of added schema for this group. |
Schemas | List of schemas for this group. |
Settings | The AddressableAssetSettings that this group belongs to. |
entries | The collection of asset entries. |
Methods
Name | Description |
---|---|
Add |
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. |
Add |
Adds a copy of the provided schema object. |
Add |
Creates and adds a schema of a given type to this group. |
Can |
Check if a group has the appropriate schemas and attributes that the Default Group requires. |
Clear |
Removes all schemas and optionally deletes the assets associated with them. |
Compare(Addressable |
Compares two asset entries based on their guids. |
Find |
Gets the index of a schema based on its specified type. |
Gather |
Gathers all asset entries. Each explicit entry may contain multiple sub entries. For example, addressable folders create entries for each asset contained within. |
Get |
Get an entry via the asset guid. |
Get |
Get an entry via the asset guid. |
Get |
Gets an added schema of the specified type. |
Get |
Gets an added schema of the specified type. |
Has |
Checks if the group contains a schema of a given type. |
Has |
Checks if the group contains a schema of a given type. |
Is |
Check to see if a group is the Default Group. |
On |
Implementation of ISerializationCallbackReceiver. Converts data from serializable format. |
On |
Implementation of ISerializationCallbackReceiver. Converts data to serializable form before serialization, and sorts collections for deterministic ordering. |
Remove |
Remove an entry. |
Remove |
Remove a given schema from this group. |
Remove |
Remove a given schema from this group. |
Set |
Marks the object as modified. |