ServiceSetUsername Method
Sets the username for the current user in the multiplayer system.
Namespace: Alteruna.Multiplayer.CoreAssembly: Alteruna (in Alteruna.dll) Version: 2.0.1+a1176e08a0b4a6bfd8fefeddde6163a16d29e5ab
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.
| InvalidOperationException | Thrown if the username is being set after the device manager has started or if there are restrictions due to active connections. |