Class EmptyMessage
A utility class to send a network message with no contents.
using UnityEngine;
using UnityEngine.Networking;
using UnityEngine.Networking.NetworkSystem;
public class Test
{
void SendNotification()
{
var msg = new EmptyMessage();
NetworkServer.SendToAll(667, msg);
}
}
Syntax
[Obsolete("The high level API classes are deprecated and will be removed in the future.")]
public class EmptyMessage : MessageBase
Methods
Deserialize(NetworkReader)
Declaration
public override void Deserialize(NetworkReader reader)
Parameters
Overrides
Serialize(NetworkWriter)
Declaration
public override void Serialize(NetworkWriter writer)
Parameters
Overrides