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

Mirrors the output of the DevConsole onto a Text component. To use, simply assign "DevConsoleOutput" to a Text Component that represents the output-terminal. Assign "DevConsoleInput" to an inputfield representing the user input. To submit a command, the user may use the keybinding specified as the /settings/core/devConsole/submitConsoleKey setting. More...

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

Public Member Functions

void run_command ()
 Run the command that is written in DevConsoleInput. More...
 
- Public Member Functions inherited from AVR.Core.AVR_Behaviour
virtual void OnDestroy ()
 

Public Attributes

Text DevConsoleOutput
 
InputField DevConsoleInput
 

Private Member Functions

void Awake ()
 
void OnEnable ()
 
void FocusInputField ()
 
void OnGUI ()
 

Private Attributes

int history_index = 0
 
KeyCode toggleKey
 
KeyCode offKey
 
KeyCode submitKey
 

Additional Inherited Members

- 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

Mirrors the output of the DevConsole onto a Text component. To use, simply assign "DevConsoleOutput" to a Text Component that represents the output-terminal. Assign "DevConsoleInput" to an inputfield representing the user input. To submit a command, the user may use the keybinding specified as the /settings/core/devConsole/submitConsoleKey setting.

Definition at line 16 of file AVR_DevConsoleMirror.cs.