Method AddSchema
AddSchema(AddressableAssetGroupSchema, bool)
Adds a copy of the provided schema object.
선언
public AddressableAssetGroupSchema AddSchema(AddressableAssetGroupSchema schema, bool postEvent = true)
파라미터
타입 | 이름 | 설명 |
---|---|---|
AddressableAssetGroupSchema | schema | The schema to add. A copy will be made and saved in a folder relative to the main Addressables settings asset. |
bool | postEvent | Determines if this method call will post an event to the internal addressables event system |
반환
타입 | 설명 |
---|---|
AddressableAssetGroupSchema | The created schema object. |
AddSchema(Type, bool)
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.
선언
public AddressableAssetGroupSchema AddSchema(Type type, bool postEvent = true)
파라미터
타입 | 이름 | 설명 |
---|---|---|
Type | type | The schema type. This type must not already be added. |
bool | postEvent | Determines if this method call will post an event to the internal addressables event system |
반환
타입 | 설명 |
---|---|
AddressableAssetGroupSchema | The created schema object. |
AddSchema<TSchema>(bool)
Creates and adds a schema of a given type to this group.
선언
public TSchema AddSchema<TSchema>(bool postEvent = true) where TSchema : AddressableAssetGroupSchema
파라미터
타입 | 이름 | 설명 |
---|---|---|
bool | postEvent | Determines if this method call will post an event to the internal addressables event system |
반환
타입 | 설명 |
---|---|
TSchema | The created schema object. |
타입 파라미터
이름 | 설명 |
---|---|
TSchema | The schema type. This type must not already be added. |