VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public Attributes | Private Member Functions | Private Attributes | List of all members
AVR.Core.AVR_BasicDevConsoleUI Class Reference

A rudimentary UI version of the AVR_DevConsole. If you wish to implement a better one, take a look at AVR_DevConsoleMirror. More...

Inheritance diagram for AVR.Core.AVR_BasicDevConsoleUI:
AVR.Core.AVR_Behaviour

Public Attributes

GUIStyle style
 
Color backgroundColor = new Color(0.1f, 0.1f, 0.1f, 1.0f)
 
Color textBackgroundColor = new Color(0.07f, 0.07f, 0.07f, 1.0f)
 
Vector2 position = new Vector2(0, 0)
 
Vector2 size = new Vector2(820, 420)
 

Private Member Functions

void Awake ()
 
void runCommand ()
 
void OnGUI ()
 

Private Attributes

string cmd
 
Vector2 scrollPosition
 
Texture2D background
 
Texture2D textBackground
 
KeyCode toggleKey
 
KeyCode offKey
 
KeyCode submitKey
 
bool active = false
 
int history = -1
 

Additional Inherited Members

- Public Member Functions inherited from AVR.Core.AVR_Behaviour
virtual void OnDestroy ()
 
- Protected Attributes inherited from AVR.Core.AVR_Behaviour
AVR_PlayerRig playerRig => AVR_PlayerRig.Instance
 The current AVR_PlayerRig instance in the scene More...
 
AVR_Root root => AVR_Root.Instance
 The current AVR_Root instance in the scene More...
 
bool vrEnabled => UnityEngine.XR.XRSettings.enabled
 True if the application is running as a VR/XR application More...
 

Detailed Description

A rudimentary UI version of the AVR_DevConsole. If you wish to implement a better one, take a look at AVR_DevConsoleMirror.

Definition at line 10 of file AVR_BasicDevConsoleUI.cs.