Version: 2018.2
Oculus の入力
XR API リファレンス

Daydream コントローラー

Unity はネイティブに Daydream コントローラー をサポートし、UnityEngine.Input を使用してコントローラーから軸とボタンの値を読み取ります。Daydream コントローラーのトラッキングデータは、XRNode システムを通して反映されます。

命名規則と検出

When properly configured and connected to the Android device, the Daydream Controller appears in the list that UnityEngine.Input.GetJoystickNames returns. It appears as the Daydream Controller - Right or Daydream Controller - Left, depending on the Daydream controller’s handedness setting (in the Daydream application settings).

Unity Input System マッピング

ハードウェアの機能 Unity Button ID Unity Axis ID 押下時の Unity Axis 値
1 - タッチパッド 垂直方向 該当なし Left - Axis 1
Right - Axis 4
–1 はアップ、1 はダウン
1 - タッチパッド 水平方向 該当なし Left - Axis 2
Right - Axis 5
–1 は左、1 は右
1 - タッチパッド タッチ Left - Button 18
Right - Button 19
該当なし
1 - タッチパッド クリック Left - Button 16
Right - Button 17
該当なし
2 - アプリボタン Left - Button 2
Right - Button 0
該当なし
3 - メニュー (リザーブ) 該当なし 該当なし
5 - 音量 (リザーブ) 該当なし 該当なし
Oculus の入力
XR API リファレンス
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961