Struct MigrationDescription<TVersion, TTarget>
Describe migration steps to perform when upgrading from one version of an object to another.
Inherited Members
Namespace: UnityEngine.Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
Syntax
public struct MigrationDescription<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 |
---|---|
MigrationDescription(params MigrationStep<TVersion, TTarget>[]) | Build a migration description. |
Methods
Name | Description |
---|---|
ExecuteStep(TTarget, TVersion) | Execute a migration step. |
Migrate(TTarget) | Execute the migration on the provided instance. All steps with a version greater than the instance version will be executed in ascending order. Eg: for instance with version 2 and step version 1, 3, 5, and 6. It will execute steps 3 then 5 then 6. |