Struct MigrationStep<TVersion, TTarget>
Define a migration step.
Implements
IEquatable<MigrationStep<TVersion, TTarget>>
Inherited Members
Namespace: UnityEngine.Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
Syntax
public struct MigrationStep<TVersion, TTarget> : IEquatable<MigrationStep<TVersion, TTarget>> where TVersion : struct, IConvertible where TTarget : class, IVersionable<TVersion>
Type Parameters
Name | Description |
---|---|
TVersion | An enum identifying the version. |
TTarget | The type to migrate. |
Constructors
Name | Description |
---|---|
MigrationStep(TVersion, Action<TTarget>) | Create a new migration step. |
Fields
Name | Description |
---|---|
Version | The version of the step. |
Methods
Name | Description |
---|---|
Equals(MigrationStep<TVersion, TTarget>) | Evaluate equality between migration steps. |
Migrate(TTarget) | Migrate the instance for this step and set the version of the instance to this version. If the instance has a version greater or equal to the step one, nothing will be applied. |