Class MigrationStep
Define helpers to manipulate MigrationStep<TVersion, TTarget>.
Namespace: UnityEngine.Rendering.HighDefinition
Syntax
public static class MigrationStep
Methods
New<TVersion, TTarget>(TVersion, Action<TTarget>)
Create a new MigrationStep<TVersion, TTarget>.
Declaration
public static MigrationStep<TVersion, TTarget> New<TVersion, TTarget>(TVersion version, Action<TTarget> action)
where TVersion : struct, IConvertible where TTarget : class, IVersionable<TVersion>
Parameters
Type | Name | Description |
---|---|---|
TVersion | version | The version of the step. |
Action<TTarget> | action | The migration action to perform. |
Returns
Type | Description |
---|---|
MigrationStep<TVersion, TTarget> | The migration step. |
Type Parameters
Name | Description |
---|---|
TVersion | An enum identifying the version. |
TTarget | The type to migrate. |