docs.unity.cn
    Show / Hide Table of Contents

    Class VersionedStruct

    Class VersionedStruct.

    Inheritance
    Object
    VersionedStruct
    ClockEvent
    SerializedComment
    SerializedEdge
    SerializedGroup
    SerializedMeta
    SerializedNode
    SerializedParameter
    SerializedScheduler
    Namespace: Mechatronics.SystemGraph
    Syntax
    [Serializable]
    public class VersionedStruct

    Constructors

    VersionedStruct()

    Initializes a new instance of the VersionedStruct class.

    Declaration
    protected VersionedStruct()

    VersionedStruct(Int32)

    Initializes a new instance of the VersionedStruct class.

    Declaration
    protected VersionedStruct(int version)
    Parameters
    Type Name Description
    Int32 version

    The version.

    Fields

    version

    The actual version of this struct

    Declaration
    public int version
    Field Value
    Type Description
    Int32

    Properties

    CurrentVersion

    Gets the current version.

    Declaration
    public virtual int CurrentVersion { get; }
    Property Value
    Type Description
    Int32

    The current version.

    Methods

    Create<T>(Func<T>)

    Creates the specified builder.

    Declaration
    protected static T Create<T>(Func<T> builder)
        where T : VersionedStruct
    Parameters
    Type Name Description
    Func<T> builder

    The builder.

    Returns
    Type Description
    T

    T instance

    Type Parameters
    Name Description
    T

    VersionedStruct type

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