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

Definition at line 72 of file AVR_Core_ConsoleCommands.cs.

72  {
73  string remainder = string.Join(" ", args);
74  GameObject o = (GameObject)AVR.Core.Utils.Misc.GlobalFind(remainder, typeof(GameObject));
75  if (o == null)
76  {
77  AVR_DevConsole.error("Could not find object with name " + remainder);
78  }
79  else
80  {
81  o.SetActive(!o.activeSelf);
82  AVR_DevConsole.success("Toggled object " + o.name);
83  }
84  }