docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct MigrationStep<TVersion, TTarget>

    Define a migration step.

    Implements
    IEquatable<MigrationStep<TVersion, TTarget>>
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    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.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)