Class ContextBase
Implements
Inherited Members
Namespace: Unity.Build
Assembly: solution.dll
Syntax
public abstract class ContextBase : IDisposable
Properties
| Name | Description |
|---|---|
| BuildConfigurationAssetGUID | The build configuration asset GUID. |
| BuildConfigurationAssetPath | The build configuration asset path. |
| BuildConfigurationName | The build configuration name. |
| UsedComponents | List of build component types used by the build pipeline. |
| Values | List of all values stored. |
Methods
| Name | Description |
|---|---|
| Dispose() | Provides a mechanism for releasing unmanaged resources. |
| GetComponentOrDefault(Type) | Get the value of a component type if found. Otherwise an instance created using TypeConstruction utility. The container is not modified. Throws if component type is not in UsedComponents list. |
| GetComponentOrDefault<T>() | Get the value of a component type if found. Otherwise an instance created using TypeConstruction utility. The container is not modified. Throws if component type is not in UsedComponents list. |
| GetComponentTypes() | Get a flatten list of all component types from this container and its dependencies. |
| GetComponents() | Get a flatten list of all components recursively from this container and its dependencies. Throws if a component type is not in UsedComponents list. |
| GetComponents(Type) | Get a flatten list of all components recursively from this container and its dependencies, that matches Type. Throws if component type is not in UsedComponents list. |
| GetComponents<T>() | Get a flatten list of all components recursively from this container and its dependencies, that matches |
| GetLastBuildArtifact(Type) | Get the value of the first build artifact that is assignable to type Type. |
| GetLastBuildArtifact<T>() | Get the value of the first build artifact that is assignable to type |
| GetLastBuildResult() | Get the last build result for this build configuration. |
| GetOrCreateValue<T>() | Get value of type |
| GetOutputBuildDirectory() | Get the output build directory override used in this build context. The output build directory can be overridden using a OutputBuildDirectory component. |
| GetValueOrDefault<T>() | Get value of type |
| GetValue<T>() | Get value of type |
| HasComponent(Type) | Determine if a component type is stored in this container or its dependencies. Throws if component type is not in UsedComponents list. |
| HasComponent<T>() | Determine if a component type is stored in this container or its dependencies. Throws if component type is not in UsedComponents list. |
| HasValue<T>() | Determine if the value of type |
| IsComponentInherited(Type) | Determine if a component type is inherited from a dependency. Throws if component type is not in UsedComponents list. |
| IsComponentInherited<T>() | Determine if a component type is inherited from a dependency. Throws if component type is not in UsedComponents list. |
| IsComponentOverridden(Type) | Determine if a component type overrides a dependency. Throws if component type is not in UsedComponents list. |
| IsComponentOverridden<T>() | Determine if a component type overrides a dependency. Throws if component type is not in UsedComponents list. |
| IsComponentOverriding(Type) | Determines if component overrides a dependency. Throws if component type is not in UsedComponents list. |
| IsComponentOverriding<T>() | Determines if component overrides a dependency. Throws if component type is not in UsedComponents list. |
| IsComponentUsed(Type) | Determine if component is used by the build pipeline. |
| IsComponentUsed<T>() | Determine if component is used by the build pipeline. |
| RemoveComponent(Type) | Remove a component type from this context. NOTE: The build configuration asset is not modified. |
| RemoveComponent<T>() | Remove all |
| RemoveValue<T>() | Remove value of type |
| SetComponent(Type) | Set the value of a component type on this context using an instance created using TypeConstruction utility. NOTE: The build configuration asset is not modified. |
| SetComponent(Type, IBuildComponent) | Set the value of a component type on this context. NOTE: The build configuration asset is not modified. |
| SetComponent<T>() | Set the value of a component type on this context using an instance created using TypeConstruction utility. NOTE: The build configuration asset is not modified. |
| SetComponent<T>(T) | Set the value of a component type on this context. NOTE: The build configuration asset is not modified. |
| SetValue<T>() | Set value of type |
| SetValue<T>(T) | Set value of type |
| TryGetComponent(Type, out IBuildComponent) | Try to get the value of a component type. Throws if component type is not in UsedComponents list. |
| TryGetComponent<T>(out T) | Try to get the value of a component type. Throws if component type is not in UsedComponents list. |