Class BuildContext
Holds contextual information when building a build pipeline.
Implements
Inherited Members
Namespace: Unity.Build
Assembly: solution.dll
Syntax
public sealed class BuildContext : ContextBase, IDisposable
Properties
| Name | Description |
|---|---|
| BuildManifest | Quick access to build manifest value. |
| BuildProgress | The build progress object used througout the build. |
Methods
| Name | Description |
|---|---|
| Failure(Exception) | Get a build result representing a failure. |
| Failure(string) | Get a build result representing a failure. |
| GetAllBuildArtifacts() | Get all build artifact values. |
| GetBuildArtifact(Type) | Get the first build artifact value that is assignable to specified type. Multiple build artifact value can be stored per build configuration. |
| GetBuildArtifact<T>() | Get the first build artifact value that is assignable to specified type. Multiple build artifact value can be stored per build configuration. |
| GetOrCreateBuildArtifact(Type) | Get the first build artifact value that is assignable to specified type, or create and set it if not found. Multiple build artifact value can be stored per build configuration. |
| GetOrCreateBuildArtifact<T>() | Get the first build artifact value that is assignable to specified type, or create and set it if not found. Multiple build artifact value can be stored per build configuration. |
| HasBuildArtifact(Type) | Determine if a build artifact that is assignable to the specified type is present. |
| HasBuildArtifact<T>() | Determine if a build artifact that is assignable to the specified type is present. |
| RemoveAllBuildArtifacts() | Remove all build artifacts. |
| RemoveBuildArtifact(Type) | Remove all build artifact that is assignable to specified type. |
| RemoveBuildArtifact<T>() | Remove all build artifact that is assignable to specified type. |
| SetBuildArtifact(IBuildArtifact) | Set the value of a build artifact. |
| Success() | Get a build result representing a success. |