Class BuildConfiguration
Can stores a set of hierarchical build components per type, which can be inherited or overridden using dependencies.
Inheritance
Implements
Inherited Members
Namespace: Unity.Build
Assembly: solution.dll
Syntax
public sealed class BuildConfiguration : HierarchicalComponentContainer<BuildConfiguration, IBuildComponent>, ISerializationCallbackReceiver
Fields
| Name | Description |
|---|---|
| AssetExtension | File extension for build configuration assets. |
Properties
| Name | Description |
|---|---|
| Show | Determine if this build configuration should be shown or hidden. |
Methods
| Name | Description |
|---|---|
| Build() | Run the build pipeline of this build configuration to build the target. |
| CanBuild() | Determine if the build pipeline of this build configuration can build. |
| CanPrepare() | Determine if the environment can be prepared before the build pipeline of this build configuration can be used. |
| CanRun(params RunTargetBase[]) | Determine if the build pipeline of this build configuration can run. |
| Clean() | Clean the build result from building the build pipeline of this build configuration. |
| CleanAllBuildArtifacts() | Clean all build artifact of every build configuration. |
| CleanBuildArtifact() | Clean the build artifact of the last Build() performed. |
| CleanBuildArtifact(BuildPipelineBase) | Clean the build artifact of the last Build() performed. |
| GetActive() | Retrieve the current active build configuration. Value is stored per-project and per-user. |
| GetAllBuildArtifacts() | Get all build artifact values. |
| GetAllBuildArtifacts(BuildPipelineBase) | Get all build artifact values. |
| GetBuildArtifact(Type) | Get the first build artifact value that is assignable to specified type. |
| GetBuildArtifact(BuildPipelineBase, Type) | Get the first build artifact value that is assignable to specified type. |
| GetBuildArtifact<T>() | Get the first build artifact value that is assignable to specified type. |
| GetBuildArtifact<T>(BuildPipelineBase) | Get the first build artifact value that is assignable to specified type. |
| GetBuildPipeline() | Retrieve the build pipeline of this build configuration. |
| GetBuildResult() | Get the build result of the last Build() performed. |
| GetBuildResult(BuildPipelineBase) | Get the build result of the last Build() performed. |
| GetLastBuildArtifact(Type) | |
| GetLastBuildArtifact<T>() | |
| GetLastBuildResult() | |
| GetOutputBuildDirectory() | Get the output build directory override for this build configuration. The output build directory can be overridden using a OutputBuildDirectory component. |
| GetPlatform() | Retrieve the platform of this build configuration. |
| HasBuildArtifact(Type) | Determine if a build artifact that is assignable to the specified type is present. |
| HasBuildArtifact(BuildPipelineBase, 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. |
| HasBuildArtifact<T>(BuildPipelineBase) | Determine if a build artifact that is assignable to the specified type is present. |
| IsComponentUsed(Type) | Determine if component is used by the build pipeline of this build configuration. Returns false if this build configuration does not have a build pipeline. |
| IsComponentUsed<T>() | Determine if component is used by the build pipeline of this build configuration. Returns false if this build configuration does not have a build pipeline. |
| Prepare() | Prepare the environment to use the build pipeline of this build configuration. |
| Run(params RunTargetBase[]) | Run the resulting target from building the build pipeline of this build configuration. |
| SetActive(BuildConfiguration) | Set current active build configuration. The build configuration must have a build pipeline set, and be buildable. |
Events
| Name | Description |
|---|---|
| ActiveChanged | Event fired when active build configuration is changed. |