36 [UnityEngine.RuntimeInitializeOnLoadMethod]
37 static void ResetStatics()
43 internal static void OnSend<T>(T message,
int channel,
int bytes,
int count)
48 MessageInfo outMessage =
new MessageInfo(message, channel, bytes, count);
53 internal static void OnReceive<T>(T message,
int channel,
int bytes)
54 where T :
struct, NetworkMessage
58 MessageInfo inMessage =
new MessageInfo(message, channel, bytes, 1);
Profiling statistics for tool to subscribe to (profiler etc.)
static Action< MessageInfo > InMessageEvent
Event for when Mirror receives a message. Can be subscribed to.
static Action< MessageInfo > OutMessageEvent
Event for when Mirror sends a message. Can be subscribed to.
Describes an outgoing message
readonly int channel
channel through which the message was sent
readonly int bytes
how big was the message (does not include transport headers)
readonly int count
How many connections was the message sent to.
readonly NetworkMessage message
The message being sent