Class SerializableObject
Inheritance
SerializableObject
Assembly: Unity.Netcode.RuntimeTests.dll
Syntax
public class SerializableObject : INetworkSerializable, IEquatable<SerializableObject>
Fields
FloatValue
Declaration
Field Value
IntValue
Declaration
Field Value
LongValue
Declaration
Field Value
Methods
Equals(SerializableObject)
Declaration
public bool Equals(SerializableObject other)
Parameters
Returns
GetListOfListOfRandomObjects(int, int)
Declaration
public static List<List<SerializableObject>> GetListOfListOfRandomObjects(int numberOfLists, int countPerList)
Parameters
Type |
Name |
Description |
int |
numberOfLists |
|
int |
countPerList |
|
Returns
GetListOfRandomObjects(int)
Declaration
public static List<SerializableObject> GetListOfRandomObjects(int count)
Parameters
Type |
Name |
Description |
int |
count |
|
Returns
GetRandomObject()
Declaration
public static SerializableObject GetRandomObject()
Returns
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.
|
Implements