Player
Get the player’s full name (guaranteed field on all platforms):
string displayName = MirraSDK.Player.DisplayName;
Get the player’s first name:
string firstName = MirraSDK.Player.FirstName;
Get the player’s last name:
string lastName = MirraSDK.Player.LastName;
Get the player’s tag:
string username = MirraSDK.Player.Username;
Get the player’s unique identifier:
string uniqueId = MirraSDK.Player.UniqueId;
Check if the player is authorized:
bool isLoggedIn = MirraSDK.Player.IsLoggedIn;
Invoke player authorization:
MirraSDK.Player.InvokeLogin(
() => Debug.Log("authorization successful"),
() => Debug.LogError("authorization error")
);