Method GetRequiredComponent
GetRequiredComponent(BuildContext, Type)
Get the value of a required Type component from BuildSettings. The component Type must exist in the RequiredComponents list.
Declaration
public IBuildSettingsComponent GetRequiredComponent(BuildContext context, Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| BuildContext | context | The BuildContext used by the execution of this BuildStep. |
| Type | type | Type of the required component. |
Returns
| Type | Description |
|---|---|
| IBuildSettingsComponent | The value of the required component. |
GetRequiredComponent<T>(BuildContext)
Get the value of a required T component from BuildSettings.
The component Type must exist in the RequiredComponents list.
Declaration
public T GetRequiredComponent<T>(BuildContext context) where T : IBuildSettingsComponent
Parameters
| Type | Name | Description |
|---|---|---|
| BuildContext | context | The BuildContext used by the execution of this BuildStep. |
Returns
| Type | Description |
|---|---|
| T | The value of the required component. |
Type Parameters
| Name | Description |
|---|---|
| T | Type of the required component. |