Class BuildArtifacts
API for managing build artifacts.
Namespace: Unity.Build
Syntax
public static class BuildArtifacts
Methods
GetBuildArtifact(BuildConfiguration, Type)
Get the value of the first build artifact that is assignable to type Type.
Declaration
public static IBuildArtifact GetBuildArtifact(BuildConfiguration config, Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| BuildConfiguration | config | The build configuration that was used to store the build artifact. |
| Type | type | The type of the build artifact. |
Returns
| Type | Description |
|---|---|
| IBuildArtifact | The build artifact if found, null otherwise. |
GetBuildArtifact<T>(BuildConfiguration)
Get the value of the first build artifact that is assignable to type T.
Declaration
public static T GetBuildArtifact<T>(BuildConfiguration config)
where T : class, IBuildArtifact
Parameters
| Type | Name | Description |
|---|---|---|
| BuildConfiguration | config | The build configuration that was used to store the build artifact. |
Returns
| Type | Description |
|---|---|
| T | The build artifact if found, null otherwise. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the build artifact. |
GetBuildResult(BuildConfiguration)
Get the last build result from building the build configuration specified.
Declaration
public static BuildPipelineResult GetBuildResult(BuildConfiguration config)
Parameters
| Type | Name | Description |
|---|---|---|
| BuildConfiguration | config | The build configuration that was used to store the build artifact. |
Returns
| Type | Description |
|---|---|
| BuildPipelineResult | The build result if found, null otherwise. |