Description
The ControllersAreDrawing
property indicates whether the SteamVR system is currently rendering the VR controllers. This property is part of the VRInput
class within the Sandbox.VR
namespace.
Note: This property is marked as obsolete, which means it may be removed in future versions. It is recommended to avoid using this property in new code and to look for alternative solutions.
Usage
To access the ControllersAreDrawing
property, you need an instance of the VRInput
class. This property is not static, so it must be accessed through an object of the class.
Example usage:
VRInput vrInput = new VRInput();
bool areControllersDrawing = vrInput.ControllersAreDrawing;
if (areControllersDrawing)
{
// Logic when controllers are being drawn
}
Example
VRInput vrInput = new VRInput();
bool areControllersDrawing = vrInput.ControllersAreDrawing;
if (areControllersDrawing)
{
// Logic when controllers are being drawn
}