Struct DisconnectMessage
- Namespace
- Unity.Multiplayer.Core
What to tell a player about why their session ended: a short title, a plain sentence, and the server's own detail when it said something more specific. Made by For(Disconnection); a front end shows it in a dialog.
public readonly struct DisconnectMessage
- Inherited Members
Constructors
DisconnectMessage(string, string, string)
Creates a message.
public DisconnectMessage(string title, string body, string detail)
Parameters
Properties
Body
One or two sentences in plain words: what happened and what to do.
public string Body { get; }
Property Value
Detail
The server's own sentence when it adds something (a kick reason, the versions); empty otherwise.
public string Detail { get; }
Property Value
Title
A short heading, for example "Game full".
public string Title { get; }
Property Value
Methods
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.