Class PlayerInfo
Contains Player Information
Namespace: Unity.Services.Authentication
Syntax
public sealed class PlayerInfo : object
Properties
CreatedAt
Player Creation DateTime in UTC
Declaration
public DateTime? CreatedAt { get; }
Property Value
Type | Description |
---|---|
Nullable<DateTime> |
Id
Player Id
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
String |
Identities
Player Identities
Declaration
public List<Identity> Identities { get; }
Property Value
Type | Description |
---|---|
List<Identity> |
Methods
GetAppleId()
Returns the player's Sign in with Apple id if one has been linked.
Declaration
public string GetAppleId()
Returns
Type | Description |
---|---|
String | The player's Sign in with Apple id |
GetFacebookId()
Returns the player's facebook id if one has been linked.
Declaration
public string GetFacebookId()
Returns
Type | Description |
---|---|
String | The player's facebook id |
GetGoogleId()
Returns the player's Google Play Games id if one has been linked.
Declaration
public string GetGoogleId()
Returns
Type | Description |
---|---|
String | The player's Google Play Games id |
GetSteamId()
Returns the player's steam id if one has been linked.
Declaration
public string GetSteamId()
Returns
Type | Description |
---|---|
String |