Skip to content
single class that tries to implement an easy access to all HTC Vive sensor data/controls in Unity3D.
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
Vive.cs

README.md

UnityViveAPI

Single class that tries to implement an easy access to all HTC Vive sensor data/controls in Unity3D. To access the Vive data just add the Vive script to your scene and type

Vive.[attribute]

anywhere in your code.

available data:

  • Vive.ControllerL
  • Vive.ControllerR
  • Vive.HeadsetCamera
  • Vive.HeadsetCameraRig
  • Vive.IsLeftTriggerPressed
  • Vive.IsRightTriggerPressed
  • Vive.UserHeight

available functions:

  • Vive.VibrateRController(float)
  • Vive.VibrateLController(float)
  • Vive.TeleportPlayerToPos(UnityEngine.Vector3)
  • Vive.FadeToWhite(float)
  • Vive.FadeToBlank(float)
  • Vive.FadeToBlack(float)

Installation

  • Include Steam's SteamVR in your project.
  • Include the "[CameraRig]"-prefab in your scene.
  • Add the Vive-script to your scene, e.g. to the [CameraRig] prefab.
You can’t perform that action at this time.