0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Meta Quest】ハンドトラッキング中にコントローラーのボタンを動作させる

0
Posted at

アドカレ

KENTOのひとりアドカレ17日目の記事です。
https://qiita.com/advent-calendar/2025/kento

環境情報

ツール/SDK バージョン
Unity 6000.0.62f1
Meta XR Core SDK 81.0.0
Open XR Plugin 1.16.0
XR Interaction Toolkit 3.0.9
XR Hands 1.7.1

事前準備は以下の通りです。

コントローラーを外部から操作するボタンとして扱いたい

第三者がHMDのカメラの有効範囲外から強制的に入力を行いたいシチュエーションにおけるTipsです。

前回記事のマルチモーダルを有効化すればOKです。HMDのカメラの範囲外からでもOVRInputでの呼び出しが可能です。

参考リンク:【Meta Quest】コントローラーとハンドトラッキングをシームレスに切り替える

void Update()
{
    // マルチモーダルが有効であれば、離れた場所からでもハンドトラッキングが有効なまま入力が取れる。
    if (OVRInput.GetDown(OVRInput.RawButton.RIndexTrigger))
    {
         Debug.Log("RightTrigger Down");
    }
}
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?