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

title string
body string
detail string

Properties

Body

One or two sentences in plain words: what happened and what to do.

public string Body { get; }

Property Value

string

Detail

The server's own sentence when it adds something (a kick reason, the versions); empty otherwise.

public string Detail { get; }

Property Value

string

Title

A short heading, for example "Game full".

public string Title { get; }

Property Value

string

Methods

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.