Class TickEvent
A event that can occur during a Event
Inherited Members
Namespace: MLAPI.Profiling
Assembly: Unity.Multiplayer.MLAPI.Runtime.dll
Syntax
public class TickEvent
Fields
Bytes
The amount of bytes sent or received
Declaration
public uint Bytes
Field Value
| Type | Description |
|---|---|
| uint |
ChannelName
The name of the channel
Declaration
public string ChannelName
Field Value
| Type | Description |
|---|---|
| string |
Closed
Whether or not the event is closed
Declaration
public bool Closed
Field Value
| Type | Description |
|---|---|
| bool |
EventType
The type of evenmt
Declaration
public TickType EventType
Field Value
| Type | Description |
|---|---|
| TickType |
MessageType
The message type
Declaration
public string MessageType
Field Value
| Type | Description |
|---|---|
| string |
Methods
FromStream(Stream)
Creates a TickEvent from data in the provided stream
Declaration
public static TickEvent FromStream(Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The stream containing the TickEvent data |
Returns
| Type | Description |
|---|---|
| TickEvent | The TickEvent with data read from the stream |
SerializeToStream(Stream)
Writes the TickEvent data to the stream
Declaration
public void SerializeToStream(Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The stream to write the TickEvent data to |