docs.unity.cn
    Show / Hide Table of Contents

    Class SerializedEdgeUpgrade

    SerializedEdgeUpgrade, upgrade module for edges. Implements the UpgradeModule

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

    Methods

    FindNode(SystemGraphData, String, out SerializedNode)

    Finds the node.

    Declaration
    public bool FindNode(SystemGraphData ctx, string nodeGuid, out SerializedNode node)
    Parameters
    Type Name Description
    SystemGraphData ctx

    The graph data.

    String nodeGuid

    The node unique identifier.

    SerializedNode node

    The node.

    Returns
    Type Description
    Boolean

    true if found, false otherwise.

    GetPatch(Int32)

    Gets the patch.

    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(SerializedEdgeUpgrade, SystemGraphData, VersionedStruct)

    Upgrades to v1.

    Declaration
    public static bool UpgradeV1(SerializedEdgeUpgrade self, SystemGraphData ctx, VersionedStruct upgradedStruct)
    Parameters
    Type Name Description
    SerializedEdgeUpgrade self

    The self.

    SystemGraphData ctx

    The graph 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