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. |
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. |
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 results. |
CleanBuildArtifact() | Clean the build result of the last Build() performed. |
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. |
GetBuildPipeline() | Retrieve the build pipeline of this build configuration. |
GetBuildResult() | 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. |
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. |
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. |
Run(params RunTargetBase[]) | Run the resulting target from building the build pipeline of this build configuration. |