Method AddSchema
AddSchema(AddressableAssetGroupSchema, Func<Type, string>)
Adds a copy of the provided schema object.
선언
public AddressableAssetGroupSchema AddSchema(AddressableAssetGroupSchema schema, Func<Type, string> pathFunc)
파라미터
타입 | 이름 | 설명 |
---|---|---|
AddressableAssetGroupSchema | schema | The schema to copy. |
Func<Type, string> | pathFunc | A function that returns the path where this method can save the schema asset. Set to null to not create an in-project asset. |
반환
타입 | 설명 |
---|---|
AddressableAssetGroupSchema | The created schema object. |
AddSchema(Type, Func<Type, string>)
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, Func<Type, string> pathFunc)
파라미터
타입 | 이름 | 설명 |
---|---|---|
Type | type | The schema type. This type must not already be added. |
Func<Type, string> | pathFunc | A function that returns the path where this method can save the schema asset. Set to null to not create an in-project asset. |
반환
타입 | 설명 |
---|---|
AddressableAssetGroupSchema | The created schema object. |