Method AddSchema
AddSchema(AddressableAssetGroupSchema, Boolean)
Adds a copy of the provided schema object.
Declaration
public AddressableAssetGroupSchema AddSchema(AddressableAssetGroupSchema schema, bool postEvent = true)
Parameters
Type | Name | Description |
---|---|---|
AddressableAssetGroupSchema | schema | The schema to add. A copy will be made and saved in a folder relative to the main Addressables settings asset. |
Boolean | postEvent | Determines if this method call will post an event to the internal addressables event system |
Returns
Type | Description |
---|---|
AddressableAssetGroupSchema | The created schema object. |
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.
Declaration
public AddressableAssetGroupSchema AddSchema(Type type, bool postEvent = true)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The schema type. This type must not already be added. |
Boolean | postEvent | Determines if this method call will post an event to the internal addressables event system |
Returns
Type | Description |
---|---|
AddressableAssetGroupSchema | The created schema object. |
AddSchema<TSchema>(Boolean)
Creates and adds a schema of a given type to this group.
Declaration
public TSchema AddSchema<TSchema>(bool postEvent = true)
where TSchema : AddressableAssetGroupSchema
Parameters
Type | Name | Description |
---|---|---|
Boolean | postEvent | Determines if this method call will post an event to the internal addressables event system |
Returns
Type | Description |
---|---|
TSchema | The created schema object. |
Type Parameters
Name | Description |
---|---|
TSchema | The schema type. This type must not already be added. |