Method GetOptionalComponents
GetOptionalComponents(BuildContext)
Get all optional components from BuildSettings. Optional component types not found in BuildSettings will be set to a new instance of that type.
Declaration
public IEnumerable<IBuildSettingsComponent> GetOptionalComponents(BuildContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| BuildContext | context | The BuildContext used by the execution of this BuildStep. |
Returns
| Type | Description |
|---|---|
| IEnumerable<IBuildSettingsComponent> | List of optional components. |
GetOptionalComponents(BuildContext, Type)
Get all optional components from BuildSettings, that matches Type. Optional component types not found in BuildSettings will be set to a new instance of that type.
Declaration
public IEnumerable<IBuildSettingsComponent> GetOptionalComponents(BuildContext context, Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| BuildContext | context | The BuildContext used by the execution of this BuildStep. |
| Type | type | Type of the components. |
Returns
| Type | Description |
|---|---|
| IEnumerable<IBuildSettingsComponent> | List of optional components. |
GetOptionalComponents<T>(BuildContext)
Get all optional components from BuildSettings, that matches T.
Optional component types not found in BuildSettings will be set to a new instance of that type.
Declaration
public IEnumerable<T> GetOptionalComponents<T>(BuildContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| BuildContext | context | The BuildContext used by the execution of this BuildStep. |
Returns
| Type | Description |
|---|---|
| IEnumerable<T> | List of optional components. |
Type Parameters
| Name | Description |
|---|---|
| T | Type of the components. |