Class PlayURLoginCanvas
Singleton in charge of displaying the login screen.
GUI not actually used on the webpage, but allows standalone exes to integrate with the system.
Login system on the webpage actually auto-logs in using some functions in this class.
Inheritance
Object
Component
Behaviour
MonoBehaviour
PlayURLoginCanvas
Assembly: PlayUR.dll
Syntax
public class PlayURLoginCanvas : UnitySingleton<PlayURLoginCanvas>
Fields
|
Improve this Doc
View Source
errorOK
Declaration
Field Value
|
Improve this Doc
View Source
errorText
Declaration
Field Value
|
Improve this Doc
View Source
errorTitle
Declaration
Field Value
|
Improve this Doc
View Source
experimentSelect
Declaration
public Button experimentSelect
Field Value
|
Improve this Doc
View Source
experimentSelectClose
Declaration
public Button experimentSelectClose
Field Value
|
Improve this Doc
View Source
feedback
Declaration
Field Value
|
Improve this Doc
View Source
fullscreenError
Declaration
public GameObject fullscreenError
Field Value
Type |
Description |
GameObject |
|
|
Improve this Doc
View Source
loginPassword
Declaration
public Button loginPassword
Field Value
|
Improve this Doc
View Source
loginScreen
Declaration
public GameObject loginScreen
Field Value
Type |
Description |
GameObject |
|
|
Improve this Doc
View Source
loginWithBrowser
Declaration
public Button loginWithBrowser
Field Value
|
Improve this Doc
View Source
loginWithBrowser2
Declaration
public Button loginWithBrowser2
Field Value
|
Improve this Doc
View Source
panelBrowser
Declaration
public GameObject panelBrowser
Field Value
Type |
Description |
GameObject |
|
|
Improve this Doc
View Source
panelExperimentSelect
Declaration
public GameObject panelExperimentSelect
Field Value
Type |
Description |
GameObject |
|
|
Improve this Doc
View Source
panelLogin
Declaration
public GameObject panelLogin
Field Value
Type |
Description |
GameObject |
|
|
Improve this Doc
View Source
password
Declaration
public InputField password
Field Value
Type |
Description |
InputField |
|
|
Improve this Doc
View Source
register
Declaration
Field Value
|
Improve this Doc
View Source
register2
Declaration
Field Value
|
Improve this Doc
View Source
registerCancel
Declaration
public Button registerCancel
Field Value
|
Improve this Doc
View Source
registerConfirmPassword
Declaration
public InputField registerConfirmPassword
Field Value
Type |
Description |
InputField |
|
|
Improve this Doc
View Source
registerEmail
Declaration
public InputField registerEmail
Field Value
Type |
Description |
InputField |
|
|
Improve this Doc
View Source
registerFeedback
Declaration
public Text registerFeedback
Field Value
|
Improve this Doc
View Source
registerFirstName
Declaration
public InputField registerFirstName
Field Value
Type |
Description |
InputField |
|
|
Improve this Doc
View Source
registerLastName
Declaration
public InputField registerLastName
Field Value
Type |
Description |
InputField |
|
|
Improve this Doc
View Source
registerPassword
Declaration
public InputField registerPassword
Field Value
Type |
Description |
InputField |
|
|
Improve this Doc
View Source
registerScreen
Declaration
public GameObject registerScreen
Field Value
Type |
Description |
GameObject |
|
|
Improve this Doc
View Source
registerSubmit
Declaration
public Button registerSubmit
Field Value
|
Improve this Doc
View Source
registerUsername
Declaration
public InputField registerUsername
Field Value
Type |
Description |
InputField |
|
|
Improve this Doc
View Source
submit
Declaration
Field Value
|
Improve this Doc
View Source
username
Declaration
public InputField username
Field Value
Type |
Description |
InputField |
|
Properties
|
Improve this Doc
View Source
LoggedIn
Returns if we have successfully logged in or not
Declaration
public static bool LoggedIn { get; }
Property Value
Methods
|
Improve this Doc
View Source
CancelLogin(string)
Declaration
public void CancelLogin(string message = "Could not login. Contact the researcher.")
Parameters
Type |
Name |
Description |
string |
message |
|
|
Improve this Doc
View Source
Login()
Triggers a login request with whatever username and password has been entered.
Declaration
|
Improve this Doc
View Source
Register()
Triggers a register request with whatever details has been entered.
Declaration
|
Improve this Doc
View Source
ShowError(string, string, bool)
Displays a full-screen error, and prevents user from leaving this scene
Declaration
public void ShowError(string message, string title = "Error", bool showOK = false)
Parameters
Type |
Name |
Description |
string |
message |
Body text of error popup
|
string |
title |
Title text of error popup
|
bool |
showOK |
Show an OK button which user can press to try and log in again?
|
|
Improve this Doc
View Source
StandaloneLogin(string)
Function called by standalone builds upon callback from PlayUR login page
Declaration
public void StandaloneLogin(string authInput)
Parameters
Type |
Name |
Description |
string |
authInput |
|
|
Improve this Doc
View Source
WebGLLogin(string)
Declaration
public void WebGLLogin(string jsonInput)
Parameters
Type |
Name |
Description |
string |
jsonInput |
The username and password of the user.
|