docs.unity.cn
    Show / Hide Table of Contents

    Class SerializedParameterUpgrade

    SerializedParameterUpgrade, upgrade module for parameters. Implements the UpgradeModule

    Inheritance
    Object
    UpgradeModule
    SerializedParameterUpgrade
    Inherited Members
    UpgradeModule.ImplicitUpgradesHappened
    UpgradeModule.Upgrade(SystemGraphData, VersionedStruct)
    Namespace: Mechatronics.SystemGraph
    Syntax
    [UpgradeEngine(typeof(SerializedParameter))]
    public class SerializedParameterUpgrade : UpgradeModule

    Methods

    GetPatch(Int32)

    Gets the patch by version.

    Declaration
    protected override UpgradeModule.Patch GetPatch(int version)
    Parameters
    Type Name Description
    Int32 version

    The version.

    Returns
    Type Description
    UpgradeModule.Patch

    Patch.

    Overrides
    UpgradeModule.GetPatch(Int32)

    UpgradeV1(SystemGraphData, VersionedStruct)

    Upgrades to v1.

    Declaration
    public static bool UpgradeV1(SystemGraphData data, VersionedStruct upgradedStruct)
    Parameters
    Type Name Description
    SystemGraphData data

    The data.

    VersionedStruct upgradedStruct

    The upgraded structure.

    Returns
    Type Description
    Boolean

    true if upgrade happened, false otherwise.

    See Also

    UpgradeModule
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, October 18, 2022
    Terms of use