MultiplayerSetUsername Method
Sets new username for non-connected user.
Namespace: AlterunaAssembly: Alteruna.Trinity (in Alteruna.Trinity.dll) Version: 1.3.4
public bool SetUsername(
string name
)
- name String
- new username
BooleanTrue on success.
Setting the username before connecting to endpoint:
public class MyUsernameClass : Alteruna.CommunicationBridge
{
void Awake()
{
Multiplayer.SetUsername("MyUsername");
}
}