VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
static void AVR.Core.AVR_Core_ConsoleCommands.InitCommands ( )
inlinestaticprivate

Definition at line 21 of file AVR_Core_ConsoleCommands.cs.

22  {
23  AVR_DevConsole.register_command("echo", (s) => AVR_DevConsole.print(string.Join(" ", s)), 1, "Prints a given message back to the user.");
24 
25  AVR_DevConsole.register_command("packages", (s) => print_packages(), "Prints a list of all installed arc-vr packages");
26 
27  AVR_DevConsole.register_command("clear", (s) => AVR_DevConsole.clear(), "Clears console output");
28  AVR_DevConsole.register_command("clr", (s) => AVR_DevConsole.clear(), "Clears console output");
29 
30  AVR_DevConsole.register_command("toggle", (s) => toggle_obj(s), 1, "Toggles a scene object with a given name.");
31 
32  AVR_DevConsole.register_command("prefabs", (s) => prefabSearch(s), 2, "Searches within the UnityEditor for prefabs. args[0] should be \"ui\" or \"props\" with the remainder being the search term.");
33 
34  AVR_DevConsole.register_command("spam", (s) => { for(int i=0; i<100; i++) AVR_DevConsole.print("output"+i); }, "Outputs a bunch of console messages. Used for console testing/debugging.");
35 
36  AVR_DevConsole.register_command("reconfigure", (s) => { AVR_Settings.reconfigure(); }, "Re-initializes AVR_Settings.");
37 
38  AVR_DevConsole.register_command("get", (s) => AVR_DevConsole.print(AVR_Settings.get_string(s[0])), 1, "Prints a setting with the given settings-token");
39 
40  AVR_DevConsole.register_command("set", (s) => AVR_Settings.settings[s[0]]=s[1], 2, "Sets a setting with settings-token arg[0] to the value of arg[1]");
41 
42  AVR_DevConsole.register_command("start_xr", (s) => AVR_PlayerRig.Instance.StartCoroutine(StartXR()));
43 
44  AVR_DevConsole.register_command("stop_xr", (s) => StopXR());
45  }
Represents the players VR setup. Only one instance at a time is allowed.
Class for the arc-vr developer's console. Functions as a singleton with only static members...
Contains constan values, settings etc. which can all be set through *.avr files. Duplicate settings w...
Definition: AVR_Settings.cs:14
static Dictionary< string, string > settings
Dictionary containing all settings by their key. A setting declared as domain = { setting = true } wi...
Definition: AVR_Settings.cs:42
static void print(string s)
Print a given string on the console.
static string get_string(string token)
Get a registered setting of the type string.
Definition: AVR_Settings.cs:88
static void clear()
Clear console output entirely.