Interface IDataBuilderContext
Used to pass context data into IDataBuilders.
Namespace: UnityEditor.AddressableAssets
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(String)
Get a context value.
Declaration
object GetValue(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key for the value. |
Returns
Type | Description |
---|---|
System.Object | The value as an object. |
GetValue<T>(String)
Get a context value.
Declaration
T GetValue<T>(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key for the 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. |