Class AuthenticationExtensions
Authentication extension methods
Inherited Members
Namespace: Unity.Services.Authentication
Assembly: Unity.Services.Authentication.dll
Syntax
public static class AuthenticationExtensions
Methods
SetProfile(InitializationOptions, string)
An extension to set the profile name to use. The profile is a namespace in PlayerPrefs where the values from the Authentication SDK are saved. Setting a profile name in this way is optional, by default the value "default" is used. The profile name must be alphanumeric, '-', or '_', and no longer than 30 characters.
Declaration
public static InitializationOptions SetProfile(this InitializationOptions options, string profile)
Parameters
Type | Name | Description |
---|---|---|
InitializationOptions | options | The InitializationOptions object to modify |
string | profile | The profile name to use |
Returns
Type | Description |
---|---|
InitializationOptions | Return |
Exceptions
Type | Condition |
---|---|
AuthenticationException | the method will fail with an AuthenticationException if an invalid profile name is passed
|