Simple IAP System  5.0
Public Member Functions | Public Attributes | List of all members
UILogin

Sample UI script for registering new accounts and logging in with PlayFab. The current implementation makes use of email addresses for creating new users. More...

Inheritance diagram for UILogin:

Public Member Functions

void RegisterAccount ()
 Registers a new account with PlayFab, mapped to a UI button. More...
 
void LoginWithEmail ()
 Tries to login via email, mapped to a UI button. More...
 
void LoginWithSocial (string providerName)
 
void LoginWithDevice ()
 
void ForgotPassword ()
 Requests a new password, mapped to a UI button. More...
 

Public Attributes

string nextScene
 Scene to load immediately after successfully logging in. More...
 
GameObject loadingScreen
 Loading screen game object to activate between login attempts. More...
 
InputField emailField
 Email address field to register or log in. More...
 
InputField passwordField
 Password field to register or log in. More...
 
Text errorText
 Error text displayed in case of login issues. More...
 
GameObject deviceLoginButton
 Button for using login via device identifier. Not supported on all services. More...
 
GameObject socialLoginButton
 Button for using login via social provider. Not supported on all services. More...
 

Detailed Description

Sample UI script for registering new accounts and logging in with PlayFab. The current implementation makes use of email addresses for creating new users.

Member Function Documentation

void ForgotPassword ( )

Requests a new password, mapped to a UI button.

void LoginWithDevice ( )
void LoginWithEmail ( )

Tries to login via email, mapped to a UI button.

void LoginWithSocial ( string  providerName)
void RegisterAccount ( )

Registers a new account with PlayFab, mapped to a UI button.

Member Data Documentation

GameObject deviceLoginButton

Button for using login via device identifier. Not supported on all services.

InputField emailField

Email address field to register or log in.

Text errorText

Error text displayed in case of login issues.

GameObject loadingScreen

Loading screen game object to activate between login attempts.

string nextScene

Scene to load immediately after successfully logging in.

InputField passwordField

Password field to register or log in.

GameObject socialLoginButton

Button for using login via social provider. Not supported on all services.


The documentation for this class was generated from the following file: