VR Development Framework
v 1.0.0
Main Page
Related Pages
Namespaces
Classes
All
Classes
Namespaces
Functions
Variables
Enumerations
Enumerator
Properties
Events
Pages
AVR
Core
AVR_Core_ConsoleCommands
InitCommands
prefabSearch
print_packages
SetSearch
StartXR
StopXR
toggle_obj
static void AVR.Core.AVR_Core_ConsoleCommands.toggle_obj
(
string[]
args
)
inline
static
private
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
}