LoginSignup
5
3

More than 5 years have passed since last update.

OculusGoのホームボタン(Oculusボタン)長押しを取得する方法

Posted at

ホームメニューやブラウザなどでコントローラーのホームボタン(Oculusボタン)長押しをするとVR空間の方向がリセットされますが、これをunityで検出するには「OVRInput.GetControllerWasRecentered()」を使います。

環境: Unity 2018.1.5f1 (64-bit) / OculusUtilities(1.26.0 2018/06/20)

コード

if (OVRInput.GetControllerWasRecentered(OVRInput.GetActiveController())) {
    Debug.Log("reCenter!");
}
5
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
3