Interface IDataBuilder
Builds objects of type IDataBuilderResult.
Namespace: UnityEditor.AddressableAssets
Syntax
public interface IDataBuilder
Properties
Name
The name of the builder, used for GUI.
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
BuildData<T>(IDataBuilderContext)
Build the data of a specific type.
Declaration
T BuildData<T>(IDataBuilderContext context)where T : IDataBuilderResult
Parameters
Type | Name | Description |
---|---|---|
IDataBuilderContext | context | The context used to build the data. |
Returns
Type | Description |
---|---|
T | The built data. |
Type Parameters
Name | Description |
---|---|
T | The data type. |
CanBuildData<T>()
Can this builder build the type of data requested.
Declaration
bool CanBuildData<T>()where T : IDataBuilderResult
Returns
Type | Description |
---|---|
System.Boolean | True if the build can build it. |
Type Parameters
Name | Description |
---|---|
T | The data type. |
ClearCachedData()
Clears all cached data.
Declaration
void ClearCachedData()
CreateGUI(IDataBuilderContext)
Create a gui object.
Declaration
IDataBuilderGUI CreateGUI(IDataBuilderContext context)
Parameters
Type | Name | Description |
---|---|---|
IDataBuilderContext | context | The context to use when creating the gui. |
Returns
Type | Description |
---|---|
IDataBuilderGUI | The gui object. This may be null for some builders. |