Simple IAP System  4.3
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 LoginWithDevice ()
 
void ForgotPassword ()
 Requests a new password, mapped to a UI button. More...
 
void LinkAccountOther ()
 
void UnlinkOther ()
 
void LoginAccountOther ()
 

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...
 
Text userText
 
Text keyText
 
InputField userField
 
InputField[] keyFields
 

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 LinkAccountOther ( )
void LoginAccountOther ( )
void LoginWithDevice ( )
void LoginWithEmail ( )

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

void RegisterAccount ( )

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

void UnlinkOther ( )

Member Data Documentation

InputField emailField

Email address field to register or log in.

Text errorText

Error text displayed in case of login issues.

InputField [] keyFields
Text keyText
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.

InputField userField
Text userText

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