MultiplayerSetUsername Method

Sets new username for non-connected user.

Definition

Namespace: Alteruna
Assembly: Alteruna.Trinity (in Alteruna.Trinity.dll) Version: 1.3.4
C#
public bool SetUsername(
	string name
)

Parameters

name  String
new username

Return Value

Boolean
True on success.

Example

Setting the username before connecting to endpoint:
C#
public class MyUsernameClass : Alteruna.CommunicationBridge
{
    void Awake()
    {
        Multiplayer.SetUsername("MyUsername");
    }
}

See Also