Class MigrationStep | High Definition RP | 6.7.1-preview
docs.unity.cn
    Show / Hide Table of Contents

    Class MigrationStep

    Define helpers to manipulate MigrationStep<TVersion, TTarget>.

    Inheritance
    Object
    MigrationStep
    Namespace: UnityEngine.Experimental.Rendering.HDPipeline
    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.

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX