Show / Hide Table of Contents

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
Object
Component
Behaviour
MonoBehaviour
UnitySingleton<PlayURLoginCanvas>
PlayURLoginCanvas
Namespace: PlayUR.Core
Assembly: PlayUR.dll
Syntax
public class PlayURLoginCanvas : UnitySingleton<PlayURLoginCanvas>

Fields

| Improve this Doc View Source

errorOK

Declaration
public Button errorOK
Field Value
Type Description
Button
| Improve this Doc View Source

errorText

Declaration
public Text errorText
Field Value
Type Description
Text
| Improve this Doc View Source

errorTitle

Declaration
public Text errorTitle
Field Value
Type Description
Text
| Improve this Doc View Source

experimentSelect

Declaration
public Button experimentSelect
Field Value
Type Description
Button
| Improve this Doc View Source

experimentSelectClose

Declaration
public Button experimentSelectClose
Field Value
Type Description
Button
| Improve this Doc View Source

feedback

Declaration
public Text feedback
Field Value
Type Description
Text
| 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
Type Description
Button
| 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
Type Description
Button
| Improve this Doc View Source

loginWithBrowser2

Declaration
public Button loginWithBrowser2
Field Value
Type Description
Button
| 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
public Button register
Field Value
Type Description
Button
| Improve this Doc View Source

register2

Declaration
public Button register2
Field Value
Type Description
Button
| Improve this Doc View Source

registerCancel

Declaration
public Button registerCancel
Field Value
Type Description
Button
| 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
Type Description
Text
| 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
Type Description
Button
| Improve this Doc View Source

registerUsername

Declaration
public InputField registerUsername
Field Value
Type Description
InputField
| Improve this Doc View Source

submit

Declaration
public Button submit
Field Value
Type Description
Button
| 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
Type Description
bool

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
public void Login()
| Improve this Doc View Source

Register()

Triggers a register request with whatever details has been entered.

Declaration
public void Register()
| 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)

The website will call this function (inside RequestWebGLLogin() in JavaScript).

Declaration
public void WebGLLogin(string jsonInput)
Parameters
Type Name Description
string jsonInput

The username and password of the user.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX