docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SerializableObject

    Inheritance
    object
    SerializableObject
    Implements
    INetworkSerializable
    IEquatable<SerializableObject>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Netcode.RuntimeTests
    Assembly: Unity.Netcode.RuntimeTests.dll
    Syntax
    public class SerializableObject : INetworkSerializable, IEquatable<SerializableObject>

    Fields

    FloatValue

    Declaration
    public float FloatValue
    Field Value
    Type Description
    float

    IntValue

    Declaration
    public int IntValue
    Field Value
    Type Description
    int

    LongValue

    Declaration
    public long LongValue
    Field Value
    Type Description
    long

    Methods

    Equals(SerializableObject)

    Declaration
    public bool Equals(SerializableObject other)
    Parameters
    Type Name Description
    SerializableObject other
    Returns
    Type Description
    bool

    GetListOfListOfRandomObjects(int, int)

    Declaration
    public static List<List<SerializableObject>> GetListOfListOfRandomObjects(int numberOfLists, int countPerList)
    Parameters
    Type Name Description
    int numberOfLists
    int countPerList
    Returns
    Type Description
    List<List<SerializableObject>>

    GetListOfRandomObjects(int)

    Declaration
    public static List<SerializableObject> GetListOfRandomObjects(int count)
    Parameters
    Type Name Description
    int count
    Returns
    Type Description
    List<SerializableObject>

    GetRandomObject()

    Declaration
    public static SerializableObject GetRandomObject()
    Returns
    Type Description
    SerializableObject

    NetworkSerialize<T>(BufferSerializer<T>)

    Provides bi-directional serialization to read and write the desired data to serialize this type.

    Declaration
    public void NetworkSerialize<T>(BufferSerializer<T> serializer) where T : IReaderWriter
    Parameters
    Type Name Description
    BufferSerializer<T> serializer

    The serializer to use to read and write the data.

    Type Parameters
    Name Description
    T

    Either BufferSerializerReader or BufferSerializerWriter, depending whether the serializer is in read mode or write mode.

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Implements

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