Interface IDataBuilderContext
Used to pass context data into IDataBuilders.
Namespace: UnityEditor.AddressableAssets.Build
Syntax
public interface IDataBuilderContext
Properties
Keys
The available keys.
Declaration
ICollection<string> Keys { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.ICollection<System.String> |
Methods
GetValue<T>(String, T)
Get a context value.
Declaration
T GetValue<T>(string key, T defaultVal = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | The key for the value. |
| T | defaultVal | The default value. |
Returns
| Type | Description |
|---|---|
| T | The value cast to the type T. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the context value to retrieve. |
SetValue(String, Object)
Sets a context value.
Declaration
void SetValue(string key, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | The key for the value. |
| System.Object | value | The value to set. |