ServiceSetUsername Method

Sets the username for the current user in the multiplayer system.

Definition

Namespace: Alteruna.Multiplayer.Core
Assembly: Alteruna (in Alteruna.dll) Version: 2.0.1+a1176e08a0b4a6bfd8fefeddde6163a16d29e5ab
C#
public void SetUsername(
	string name
)

Parameters

name  String
The desired username. This must be a valid string and comply with the maximum length and formatting requirements.

Exceptions

InvalidOperationException Thrown if the username is being set after the device manager has started or if there are restrictions due to active connections.

See Also