Class AddressableAssetGroupTemplate
Inheritance
Namespace: UnityEditor.AddressableAssets.Settings
Syntax
public class AddressableAssetGroupTemplate : ScriptableObject, IGroupTemplate
Properties
Description
The description of the AddressableAssetGroupTemplate
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Implements
Name
The name of the AddressableAssetGroupTemplate
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Implements
SchemaObjects
Returns the list of Preset objects of AddressableAssetGroupSchema associated with this template
Declaration
public List<AddressableAssetGroupSchema> SchemaObjects { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<AddressableAssetGroupSchema> |
Methods
AddSchema(Type, Boolean)
Adds the AddressableAssetGroupSchema of type to the template.
Declaration
public bool AddSchema(Type type, bool postEvent = true)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The Type for the AddressableAssetGroupSchema to add to this template. |
System.Boolean | postEvent | If true, the event is propagated to callbacks. |
Returns
Type | Description |
---|---|
System.Boolean | If true, the type was added successfully. |
ApplyToAddressableAssetGroup(AddressableAssetGroup)
Applies schema values for the group to the schema values found in the template
Declaration
public void ApplyToAddressableAssetGroup(AddressableAssetGroup group)
Parameters
Type | Name | Description |
---|---|---|
AddressableAssetGroup | group | The AddressableAssetGroup to apply the schema settings to |
GetTypes()
Gets the types of the AddressableAssetGroupSchema associated with this template
Declaration
public Type[] GetTypes()
Returns
Type | Description |
---|---|
System.Type[] | AddressableAssetGroupSchema types for schema on this template |
RemoveSchema(Type, Boolean)
Removes the AddressableAssetGroupSchema of the type from the template.
Declaration
public bool RemoveSchema(Type type, bool postEvent = true)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type of AddressableAssetGroupSchema to be removed. |
System.Boolean | postEvent | If true, the event is propagated to callbacks. |
Returns
Type | Description |
---|---|
System.Boolean | If true, the type was removed successfully. |
SetDirty(AddressableAssetSettings.ModificationEvent, Object, Boolean)
Marks the object as modified.
Declaration
public void SetDirty(AddressableAssetSettings.ModificationEvent modificationEvent, object eventData, bool postEvent)
Parameters
Type | Name | Description |
---|---|---|
AddressableAssetSettings.ModificationEvent | modificationEvent | The event type that is changed. |
System.Object | eventData | The object data that corresponds to the event. |
System.Boolean | postEvent | If true, the event is propagated to callbacks. |