---
title: Meta Quest開発 -Interaction SDK(46/55)の使い方-
tags:  #quest pro #oculus integration #unity #interaction sdk  
author: [あうぜん](https://www.docswell.com/user/Ovjang)
site: [Docswell](https://www.docswell.com/)
thumbnail: https://bcdn.docswell.com/page/G78KPX6VJD.jpg?width=480
description: Oculus IntegrationのInteraction SDKを利用する方法です。 ものを掴むなどのグラブ回りの使い方を解説しています。 対応バージョンは下記のとおり ・Unity2020/2021/2022対応 ・Integration 46/55対応
published: December 16, 22
canonical: https://www.docswell.com/s/Ovjang/5DLERK-Quest
---
# Page. 1

![Page Image](https://bcdn.docswell.com/page/G78KPX6VJD.jpg)

OCULUS INTEGRATION
INTERACTION SDKで物をつかむ編
(V46/V55-56対応)


# Page. 2

![Page Image](https://bcdn.docswell.com/page/L7LZ189RER.jpg)

大久保 聡
Mail
ovjang@gmail.com
Twitter ＠followapp


# Page. 3

![Page Image](https://bcdn.docswell.com/page/4EMVW6ZPEW.jpg)

環境構築
 環境設定については、PluginとProject Settingsの一部を入れていますが、細かな部分は解説されて
いるHomeページがたくさんありますので省略します。
 プロジェクトはURPで作成しています。
 検証済みのバージョンの組み合わせは下記の通りです。

Unity2020-21
Oculus Inetgration 46.0
Oculus XR Plugin 3.2.1(or 1.11.2)
Unity
2021.3.12f1 (or 2020.3.29f1)

Unity2022
Oculus Inetgration 55.0
Oculus XR Plugin 4.0
Unity
2022.3.5f1


# Page. 4

![Page Image](https://bcdn.docswell.com/page/PER2YP6Y79.jpg)

PLUGINのインポート
 Oculus IntegrationをImport
Oculus Inetgration 46.0
Oculus Inetgration 55.0


# Page. 5

![Page Image](https://bcdn.docswell.com/page/P7XDG3M4JX.jpg)

OCULUS INTEGRATION56
 ターゲットデバイスに、Quest3が選択可能になります。また、VulcanでもDynamic Resolution
（負荷に応じて解像度を動的に変える機能）も使えるようになりました。


# Page. 6

![Page Image](https://bcdn.docswell.com/page/37KX4YGPJD.jpg)

PLUGINのインポート
 Oculus XR Pluginを利用。
Oculus XR Plugin
3.2.1(or 1.11.2)
Oculus XR Plugin
4.0


# Page. 7

![Page Image](https://bcdn.docswell.com/page/LJ35L9N475.jpg)

PROJECT設定
 XR Plug-in Managementの設定もいい感じに終わらせる。


# Page. 8

![Page Image](https://bcdn.docswell.com/page/8JDDNGW5JG.jpg)

PROJECT設定
 Oculusの設定


# Page. 9

![Page Image](https://bcdn.docswell.com/page/VEPX539DJ8.jpg)

PROJECT設定
 Oculusの設定


# Page. 10

![Page Image](https://bcdn.docswell.com/page/27VLP4MGEQ.jpg)

OCULUS INTEGRATION


# Page. 11

![Page Image](https://bcdn.docswell.com/page/5JGXP1XD7L.jpg)

新規シーン
 OVRCameraRigを検索し、シーンに追加する。


# Page. 12

![Page Image](https://bcdn.docswell.com/page/47Q82D8XEP.jpg)

OVRMANAGERの設定
 OVRCameraRigをHierarchyから選択し、OVRManagerコンポーネントの設定で用途に応じ、手を
使うかコントローラーを使うか設定を行う。


# Page. 13

![Page Image](https://bcdn.docswell.com/page/KE42LZ2271.jpg)

ハンドトラッキング用のOVRHANDPREFABを追加
 OVRHandPrefabを検索し、左右の手のアンカーの下に配置する。


# Page. 14

![Page Image](https://bcdn.docswell.com/page/L71MLRMKJG.jpg)

OVRHANDPREFABの設定
 プレハブが左手設定になって
いるので、右手を設定する。


# Page. 15

![Page Image](https://bcdn.docswell.com/page/G7W3V13P72.jpg)

コントローラ用のOVRCONTROLLERPREFABを追加
 OVRControllerPrefabを検索し、左右のコントローラーアンカーの下に配置する。


# Page. 16

![Page Image](https://bcdn.docswell.com/page/4JZV4PV673.jpg)

OVRCONTROLLERPREFABの設定
 左右のコントローラーにTouchコントローラー
を割り当てる。
両手に
実施


# Page. 17

![Page Image](https://bcdn.docswell.com/page/YE653M5LJV.jpg)

URP用マテリアルに変換(UNITY2020-21)
 メニューのEditから、マテリアルを
UpgradeしてURP対応にする。


# Page. 18

![Page Image](https://bcdn.docswell.com/page/GE5YLZYME4.jpg)

URP用マテリアルに変換(UNITY2022)
 WindowからRender Pipeline Convertを開き
Material Upgradeをチェックし、Initialize And
Convertを押下する。
 Convert Assetsを押下する。


# Page. 19

![Page Image](https://bcdn.docswell.com/page/972GLRGR7R.jpg)

Oculus Integration v46とv55で設定内容が異なるため
内容を分けて記載しているのでご注意ください。


# Page. 20

![Page Image](https://bcdn.docswell.com/page/DJYVQDV5JM.jpg)

INTERACTION SDKを使う
INTEGRATION V46


# Page. 21

![Page Image](https://bcdn.docswell.com/page/V7NMK6M4E8.jpg)

OVRINTERACTIONを追加
 OVRInteractionを検索して追加。


# Page. 22

![Page Image](https://bcdn.docswell.com/page/YJ9NVLN4J3.jpg)

OVRINTERACTIONの設定
 OVRInteractionに、CameraRigの参照とCameraRigRefを設定する。


# Page. 23

![Page Image](https://bcdn.docswell.com/page/GJ8KPXKVED.jpg)

INTERACTION SDK側に手の表示をゆだねる
 Interaction側で手の表示は行うため、両方の手のOVRHnadPrefabの手の表示部分を削除する。
両手に
実施


# Page. 24

![Page Image](https://bcdn.docswell.com/page/LJLZ18ZR7R.jpg)

HANDSとCONTROLLERSの追加
 OVRInteractionの下に、OVRControllers、OVRHandsを追加。


# Page. 25

![Page Image](https://bcdn.docswell.com/page/47MVW6VP7W.jpg)

OVRCONTROLLERSの設定①
 OVRControllerDataSourceに参照を設定
両手に
実施


# Page. 26

![Page Image](https://bcdn.docswell.com/page/P7R2YP2YJ9.jpg)

OVRCONTROLLERSの設定②
 DebugVisualsを非Activeに設定
両手に
実施


# Page. 27

![Page Image](https://bcdn.docswell.com/page/PJXDG3D4EX.jpg)

OVRHANDSの設定①
 両方の手のHandFeeaturesに、World Transformの参照をセット
両手に
実施


# Page. 28

![Page Image](https://bcdn.docswell.com/page/3JKX4YXPED.jpg)

OVRHANDSの設定②
 両方の手ののOVRHandDataSourceに
両手に
実施


# Page. 29

![Page Image](https://bcdn.docswell.com/page/LE35L954J5.jpg)

つかむ設定を入れる
INTEGRATION V46


# Page. 30

![Page Image](https://bcdn.docswell.com/page/8EDDNGD5EG.jpg)

コントローラでつかむ①
 ControllerGrabInteractorを検索し、ControllerInteractorsの配下に追加する。


# Page. 31

![Page Image](https://bcdn.docswell.com/page/V7PX53XDE8.jpg)

コントローラでつかむ②
 両方の手のControllerGrabInteractorに、Controllerの参照を設定する。
両手に
実施


# Page. 32

![Page Image](https://bcdn.docswell.com/page/2JVLP4LG7Q.jpg)

コントローラでつかむ③
 両方の手のCotrollerInteractorsに、追加したInteractorの参照を設定する。
両手に
実施


# Page. 33

![Page Image](https://bcdn.docswell.com/page/5EGXP13DJL.jpg)

ハンドでつかむ①
 HandGrabInteractorを検索し、HandInteractorsの配下に追加する。


# Page. 34

![Page Image](https://bcdn.docswell.com/page/4JQ82D5X7P.jpg)

ハンドでつかむ②
 両方の手のHandGrabInteractorに、Handの参照を設定する。
両手に
実施


# Page. 35

![Page Image](https://bcdn.docswell.com/page/K742LZ92J1.jpg)

ハンドでつかむ③
 両方の手のHandInteractorsLeft(Right)に、追加したInteractorの参照を設定する。
両手に
実施


# Page. 36

![Page Image](https://bcdn.docswell.com/page/LJ1MLRKKEG.jpg)

INTERACTION SDKを使う
INTEGRATION V55


# Page. 37

![Page Image](https://bcdn.docswell.com/page/GJW3V1DPJ2.jpg)

OVRINTERACTIONを追加
 OVRInteractionを検索して追加。


# Page. 38

![Page Image](https://bcdn.docswell.com/page/4EZV4PG6J3.jpg)

OVRINTERACTIONの設定
 OVRInteractionに、CameraRigの参照とCameraRigRefを設定する。


# Page. 39

![Page Image](https://bcdn.docswell.com/page/Y7653MYLEV.jpg)

INTERACTION SDK側に手の表示をゆだねる
 Interaction側で手の表示は行うため、両方の手のOVRHnadPrefabの手の表示部分を削除する。
両手に
実施


# Page. 40

![Page Image](https://bcdn.docswell.com/page/G75YLZGM74.jpg)

HANDSとCONTROLLERSの追加
 OVRInteractionの下に、OVRControllers、OVRHandsを追加。


# Page. 41

![Page Image](https://bcdn.docswell.com/page/9J2GLRYRJR.jpg)

つかむ設定を入れる
INTEGRATION V55


# Page. 42

![Page Image](https://bcdn.docswell.com/page/DEYVQDG5EM.jpg)

コントローラでつかむ①
 ControllerGrabInteractorを検索し、ControllerInteractorsの配下に追加する。


# Page. 43

![Page Image](https://bcdn.docswell.com/page/VJNMK6G478.jpg)

コントローラでつかむ②
 両方の手のCotrollerInteractorsに、追加したInteractorの参照を設定する。
両手に
実施


# Page. 44

![Page Image](https://bcdn.docswell.com/page/YE9NVLW4E3.jpg)

ハンドでつかむ①
 HandGrabInteractorを検索し、HandInteractorsの配下に追加する。


# Page. 45

![Page Image](https://bcdn.docswell.com/page/GE8KPXNV7D.jpg)

ハンドでつかむ②
 両方の手のHandInteractorsLeft(Right)に、追加したInteractorの参照を設定する。
両手に
実施


# Page. 46

![Page Image](https://bcdn.docswell.com/page/LELZ18PRJR.jpg)

つかまれる側


# Page. 47

![Page Image](https://bcdn.docswell.com/page/4JMVW64PJW.jpg)

CUBEをつかめるように①
 Cubeを作成し、RigidBodyを追加。
 落ちないようにUse Gravity=True、Is Kinematic=Trueに設定します。


# Page. 48

![Page Image](https://bcdn.docswell.com/page/PJR2YPWYE9.jpg)

CUBEをつかめるように②
 Cubeに、One Grab Free TransfomerとGrabbableコンポーネントを追加。
 GrabbableコンポーネントにTransfomerを設定。


# Page. 49

![Page Image](https://bcdn.docswell.com/page/PEXDG3P47X.jpg)

CUBEを手でつかめるようにする
 Cubeに、Hand Grab Interactableコンポーネ
ントを追加。
 Hand Grab Interactableコンポーネントに掴み
位置とRigidbodyを設定。


# Page. 50

![Page Image](https://bcdn.docswell.com/page/3EKX4YDP7D.jpg)

CUBEをコントローラーでつかめるようにする
 Cubeに、Grab Interactableコンポーネントを
追加。
 Grab Interactableコンポーネントに掴み位置と
Rigidbodyを設定。


# Page. 51

![Page Image](https://bcdn.docswell.com/page/L735L9R4E5.jpg)

 手でもコントローラでも、Touch手でもつかめるようにするならば、Interactableを複数つければ良
いです。


# Page. 52

![Page Image](https://bcdn.docswell.com/page/87DDNGY57G.jpg)

その他のコンポーネント
Grabbable
挙動
Grabbable
Transformerと組み合わせてものをつかめるようになります。
Physics Grabbable
Grabbableコンポーネントと併用し、物理挙動をもつものをつかめるようになり
ます。Rigid Bodyは、Use Gravity=True Is Kinematic=Falseで使います。
Transformaer
挙動
One Hand Free Transformer
片手持ち
One Hand Translate Transformer
XYZの相対移動範囲を限定できる。
平面上を動かしたりする場合に利用。
One Hand Rotate Transformer
回転軸を固定、回転のPivotと回転範囲を指定でき
る。
Two Hand Free Transformer
両手持ち


# Page. 53

![Page Image](https://bcdn.docswell.com/page/VJPX536D78.jpg)

PHYSICS GRABBABLEの例
 右手から左手に渡せるようになっ
たり、落下物を空中でつかむこと
ができます。キャッチボールでき
るということです。


# Page. 54

![Page Image](https://bcdn.docswell.com/page/2EVLP43GJQ.jpg)

ONE HAND TRANSLATE TRANSFORMERの例
 移動可能範囲を設定する場合は、
Constrainにチェックをいれる。
XとZを-30cm～30cmしか移動
できないようにし、Yの移動制限
はなしの場合。


# Page. 55

![Page Image](https://bcdn.docswell.com/page/57GXP1YDEL.jpg)

TWO HAND FREE TRANSFORMERの例
 両手で握って回転や拡大縮
小させる場合。
拡大縮小に制限を設ける場
合は、 Constrainに値を設
定。


# Page. 56

![Page Image](https://bcdn.docswell.com/page/4EQ82DMXJP.jpg)

HAND POSEの作り方


# Page. 57

![Page Image](https://bcdn.docswell.com/page/KJ42LZV2E1.jpg)

握った際に事前にきめたポーズで握る
 何かの取っ手の形状に即した形でにぎらせたいなど、にぎり状態での手の形をポーズとして設定するこ
とが可能です。OVRHands(手のトラッキング)を使う場合にポーズが有効となります。


# Page. 58

![Page Image](https://bcdn.docswell.com/page/LE1MLR3K7G.jpg)

POSE RECORDER
 Hand Grub Pose Recorderか、Hand Grab Pose Live Recorderを使う2通りの方法があります。


# Page. 59

![Page Image](https://bcdn.docswell.com/page/GEW3V1PPE2.jpg)

ポーズを作成する前準備
 mugMeshを検索し、シーン上に配置します。握れるようにGrabbableの設定を追加。


# Page. 60

![Page Image](https://bcdn.docswell.com/page/47ZV4PK6E3.jpg)

左手のポーズ作成
 Hand Grub Pose Recorderをメニューから開きます。
 Handと握られる側のRigidBodyを設定します。


# Page. 61

![Page Image](https://bcdn.docswell.com/page/YJ653MQL7V.jpg)

ポーズをとって記録します
 UnityをPlayし、 手で作りたいポーズを演じます。
 狙いのポーズがとれたら、Hand Grub Pose RecorderのRecordボタンを押下します。
 全部のポーズが記録できたら、Save to Collectionボタンを押下します。


# Page. 62

![Page Image](https://bcdn.docswell.com/page/GJ5YLZRMJ4.jpg)

コレクションを読み込む
 UnityのPlayを停止。
 Hand Grub Pose RecorderのLoad From Collectionボタンを押下します。


# Page. 63

![Page Image](https://bcdn.docswell.com/page/LE35L9P9J5.jpg)

手のポーズ設定
 コップの取っ手の場合だと、親指と人差し指だけでつかめるように、親指と人差し指を固定し他の指は
自由に設定する。


# Page. 64

![Page Image](https://bcdn.docswell.com/page/8EDDNGL8EG.jpg)



# Page. 65

![Page Image](https://bcdn.docswell.com/page/V7PX532WE8.jpg)

反対の手のポーズの作り方


# Page. 66

![Page Image](https://bcdn.docswell.com/page/2JVLP4D97Q.jpg)

左右の手の握りポーズを変える①
 HandGrabInteractableを新規につくりながら、反対の手の作り方を説明します。 Hand Grub
Pose Recorderで記録したものがあれば、それをもとに反対の手を作ることも可能です。
 空のGameObjectを作成し、HandGrabInteractableを追加。


# Page. 67

![Page Image](https://bcdn.docswell.com/page/5EGXP1Y4JL.jpg)

左右の手の握りポーズを変える②
 HandGrabInteractableのAdd HandGrabPoseボタンを押下。


# Page. 68

![Page Image](https://bcdn.docswell.com/page/4JQ82DMR7P.jpg)

左右の手の握りポーズを変える③
 Create Mirrored HangGrabInteractableボタンを押下。
 ミラーされた右手用のGameObjectの名前を変更する。


# Page. 69

![Page Image](https://bcdn.docswell.com/page/K742LZVQJ1.jpg)

左右の手の握りポーズを変える④
 手のポーズとにぎり位置を調整する。ゴーストを操作して手のポーズも手動で変更できる。


# Page. 70

![Page Image](https://bcdn.docswell.com/page/LJ1MLR3LEG.jpg)

左右の手の握りポーズを変える⑤
 親側のコンポーネントは、４つだけで良い。


# Page. 71

![Page Image](https://bcdn.docswell.com/page/GJW3V1PQJ2.jpg)

遠くの物(GAMEOBJECT)を選択する


# Page. 72

![Page Image](https://bcdn.docswell.com/page/4EZV4PK3J3.jpg)

コントローラーのRAYを使う①
 ControllerRayInteractorを検索し、ControllerInteractorsの配下に追加する。


# Page. 73

![Page Image](https://bcdn.docswell.com/page/Y7653MQZEV.jpg)

コントローラーのRAYを使う②
 両方の手のControllerRayInteractorに、Controllerの参照を設定する。
両手に
実施


# Page. 74

![Page Image](https://bcdn.docswell.com/page/G75YLZR974.jpg)

コントローラーのRAYを使う③
 両方の手のCotrollerInteractorsに、追加したInteractorの参照を設定する。
両手に
実施


# Page. 75

![Page Image](https://bcdn.docswell.com/page/9J2GLRD5JR.jpg)

コントローラーのRAYを使う④
 ControlerRayInteractor配下のTriggerSelectorで、どのボタンとRayを関連づけるかの設定が可能。


# Page. 76

![Page Image](https://bcdn.docswell.com/page/DEYVQD26EM.jpg)

コントローラーのRAYを使う⑤
 ControlerRayInteractor配下のVisualsでRayの見た目や長さの変更ができる。


# Page. 77

![Page Image](https://bcdn.docswell.com/page/VJNMK6W178.jpg)

ハンドのRAYを使う①
 HandRayInteractorを検索し、HandInteractorsの配下に追加する。


# Page. 78

![Page Image](https://bcdn.docswell.com/page/YE9NVLXYE3.jpg)

ハンドのRAYを使う②
 両方の手のHandRayInteractorに、Handの参照を設定する。
両手に
実施


# Page. 79

![Page Image](https://bcdn.docswell.com/page/GE8KPX2K7D.jpg)

ハンドのRAYを使う③
 両方の手のHandInteractorsLeft(Right)に、追加したInteractorの参照を設定する。
両手に
実施


# Page. 80

![Page Image](https://bcdn.docswell.com/page/LELZ182PJR.jpg)

ハンドのRAYを使う④
 HandRayInteractor配下のVisualsでRayの見た目の変更ができる。


# Page. 81

![Page Image](https://bcdn.docswell.com/page/4JMVW682JW.jpg)

選択対象のオブジェクトの準備①
 Cubeを新たに作成し赤色に変更。
 RayInteractableとInteractableUnityEventWrapper、ColliderSurfaceコンポーネントを追加しま
す。


# Page. 82

![Page Image](https://bcdn.docswell.com/page/PJR2YP55E9.jpg)

選択対象のオブジェクトの準備②
 InteractableUnityEventWrapperに、追加したCubeの参照を設定する。
 Collider Surfaceに、追加したCubeの参照を設定する。


# Page. 83

![Page Image](https://bcdn.docswell.com/page/PEXDG3KX7X.jpg)

選択対象のオブジェクトの準備③
 RayInteractableに、追加したSurfaceの参照を設定する。


# Page. 84

![Page Image](https://bcdn.docswell.com/page/3EKX4Y597D.jpg)

選択対象のオブジェクトの準備④
 InteractableUnityEventWrapperに、
ホバー、アンホバー、セレクトイベント
発生時の処理を追加する。
 Objectの参照にCubeを入れて、メッ
シュレンダラーのマテリアルで、それぞ
れ青、赤(もとの色)、緑をセットする。


# Page. 85

![Page Image](https://bcdn.docswell.com/page/L735L9K9E5.jpg)

POKEでボタン操作


# Page. 86

![Page Image](https://bcdn.docswell.com/page/87DDNG387G.jpg)

コントローラーのPOKEを使う①
 ControllerPokeInteractorを検索し、ControllerInteractorsの配下に追加する。


# Page. 87

![Page Image](https://bcdn.docswell.com/page/VJPX534W78.jpg)

コントローラーのPOKEを使う②
 両方の手のControllerPokeInteractorに、Controllerの参照を設定する。
両手に
実施


# Page. 88

![Page Image](https://bcdn.docswell.com/page/2EVLP4X9JQ.jpg)

コントローラーのPOKEを使う③
 両方の手のCotrollerInteractorsに、追加したInteractorの参照を設定する。
両手に
実施


# Page. 89

![Page Image](https://bcdn.docswell.com/page/57GXP1V4EL.jpg)

ハンドのPOKEを使う①
 HandPokeInteractorを検索し、HandInteractorsの配下に追加する。


# Page. 90

![Page Image](https://bcdn.docswell.com/page/4EQ82D6RJP.jpg)

ハンドのPOKEを使う②
 両方の手のHandPokeInteractorに、Handの参照を設定する。
両手に
実施


# Page. 91

![Page Image](https://bcdn.docswell.com/page/KJ42LZ4QE1.jpg)

ハンドのPOKEを使う③
 両方の手のHandInteractorsLeft(Right)に、追加したInteractorの参照を設定する。
両手に
実施


# Page. 92

![Page Image](https://bcdn.docswell.com/page/LE1MLR4L7G.jpg)

選択対象のオブジェクトの準備①
 空のGameObjectを作成しButtonという名前に変更。
 Poke InteractableとInteractableDebugVisualコンポーネントを追加します。


# Page. 93

![Page Image](https://bcdn.docswell.com/page/GEW3V1XQE2.jpg)

選択対象のオブジェクトの準備②
 空のGameObjectをButtonの下に作成し名前をProximity Fieldに変更します。
 BoxProximityFieldコンポーネントを追加し、Box Transformに自信のTransformをセットします。


# Page. 94

![Page Image](https://bcdn.docswell.com/page/47ZV4P63E3.jpg)

選択対象のオブジェクトの準備③
 空のGameObjectをButtonの下に作成し名前をSurfaceに変更します。
 PlaneSurfaceコンポーネントを追加し、向きを下向きに変更します。


# Page. 95

![Page Image](https://bcdn.docswell.com/page/YJ653M2Z7V.jpg)

選択対象のオブジェクトの準備④
 空のGameObjectをButtonの下に作成し名前をVisualに変更します。
 Visualの配下にCubeオブジェクトを追加します。Cubeの色を赤に変更します。
 VisualにPokeInteractableVisualコンポーネントを追加し、InteractableとSurfaceの参照を設定。


# Page. 96

![Page Image](https://bcdn.docswell.com/page/GJ5YLZ29J4.jpg)

選択対象のオブジェクトの準備⑤
 VisualとCubeオブジェクトの高さを変更します。


# Page. 97

![Page Image](https://bcdn.docswell.com/page/9E2GLR45ER.jpg)

選択対象のオブジェクトの準備⑥
 ButtonオブジェクトのPokeInteractableコンポーネントのProximity FieldとSurafaceに参照を設定
する。


# Page. 98

![Page Image](https://bcdn.docswell.com/page/D7YVQDM67M.jpg)

選択対象のオブジェクトの準備⑦
 ButtonオブジェクトのInteractableDebugVisualコンポーネントInteractableViewとRendererに参
照を設定する。


# Page. 99

![Page Image](https://bcdn.docswell.com/page/VENMK631J8.jpg)

選択対象のオブジェクトの準備⑧
 上から押すと、触れると色が青に変わり。押し込むと緑に変わる。
 さらに押し込むと、指がボタンにめり込む。


# Page. 100

![Page Image](https://bcdn.docswell.com/page/Y79NVL9Y73.jpg)

ボタンに指がめり込まないようにする①
 LeftHandSyntheticとRightHandSyntheticを検索し、それぞれの手の下に追加する。


# Page. 101

![Page Image](https://bcdn.docswell.com/page/G78KPX9KJD.jpg)

ボタンに指がめり込まないようにする②
 LeftHandSyntheticのI Modify Data From Source MonoにLeftHandの参照を設定。
両手に
実施


# Page. 102

![Page Image](https://bcdn.docswell.com/page/L7LZ18WPER.jpg)

ボタンに指がめり込まないようにする③
 もとからあったVisualを非アクティブに変更する。


# Page. 103

![Page Image](https://bcdn.docswell.com/page/4EMVW692EW.jpg)

ボタンに指がめり込まないようにする④
 PokeInteracterのHandPokeLimiterをアク
ティブに変更する。


# Page. 104

![Page Image](https://bcdn.docswell.com/page/PER2YPG579.jpg)

ボタンに指がめり込まないようにする⑤
 HandPokeLimiterに、LeftHandSyntheticの参照を設定する。
両手に
実施


# Page. 105

![Page Image](https://bcdn.docswell.com/page/P7XDG3XXJX.jpg)

CURVED UI作成


# Page. 106

![Page Image](https://bcdn.docswell.com/page/37KX4YW9JD.jpg)

CURVED UIの作成①
 以下のHierarchyのようにGameObjectを生成
U I /Event System
Emp ty GameObject
Emp ty GameObject
U I /Canvas
Emp ty GameObject


# Page. 107

![Page Image](https://bcdn.docswell.com/page/LJ35L91975.jpg)

CURVED UIの作成②
 EventSystemのInspector


# Page. 108

![Page Image](https://bcdn.docswell.com/page/8JDDNGX8JG.jpg)

CURVED UIの作成③
 UI CylinderのInspector (Cylinder: Curved UIが表示される物)
Cyli nderの位置
Cyli nderのRadius
Curved U Iの表示場所：内側、外側
Cyli nderの高さ：0 = 無制限


# Page. 109

![Page Image](https://bcdn.docswell.com/page/VEPX53PWJ8.jpg)

CURVED UIの作成④
 Curved PanelのInspector


# Page. 110

![Page Image](https://bcdn.docswell.com/page/27VLP429EQ.jpg)

CURVED UIの作成⑤
 CanvasのInspector
U I 選択 ( Childも全部UIで設定)
Comp onent追加時、Alertが出たらAuto-Fixを押す
W orld Sp ace選択
U I 選択


# Page. 111

![Page Image](https://bcdn.docswell.com/page/5JGXP1R47L.jpg)

CURVED UIの作成⑥
 MeshのInspector


# Page. 112

![Page Image](https://bcdn.docswell.com/page/47Q82DVREP.jpg)

CURVED UIの作成⑦
 Culling Mask設定：UnityのUIは見えないように、全てのCameraのMaskからUIは選択解除


# Page. 113

![Page Image](https://bcdn.docswell.com/page/KE42LZMQ71.jpg)

CURVED UIにRAY機能追加


# Page. 114

![Page Image](https://bcdn.docswell.com/page/L71MLR8LJG.jpg)

CURVED UIのRAY機能追加①
 Curved PanelのInspector
追加
追加
追加


# Page. 115

![Page Image](https://bcdn.docswell.com/page/G7W3V1ZQ72.jpg)

DIRECT TOUCH UI作成


# Page. 116

![Page Image](https://bcdn.docswell.com/page/4JZV4P1373.jpg)

DIRECT TOUCH UIの作成①
 以下のHierarchyのようにGameObjectを生成
U I /Event System ( 既に存在している場合は、それを使う)
Emp ty GameObject
Emp ty GameObject
U I /Canvas


# Page. 117

![Page Image](https://bcdn.docswell.com/page/YE653MLZJV.jpg)

DIRECT TOUCH UIの作成②
 EventSystemのInspector


# Page. 118

![Page Image](https://bcdn.docswell.com/page/GE5YLZ19E4.jpg)

DIRECT TOUCH UIの作成③
 Pokeable CanvasのInspector
位置調整


# Page. 119

![Page Image](https://bcdn.docswell.com/page/972GLR157R.jpg)

DIRECT TOUCH UIの作成④
 Proximity FieldのInspector
CA N VASをOverlapするように


# Page. 120

![Page Image](https://bcdn.docswell.com/page/DJYVQDZ6JM.jpg)

DIRECT TOUCH UIの作成⑤
 CanvasのInspector
De fault選択 ( Childも全部Defaultで設定)
W orld Sp ace選択


# Page. 121

![Page Image](https://bcdn.docswell.com/page/V7NMK6Y1E8.jpg)

POSE DETECTION


# Page. 122

![Page Image](https://bcdn.docswell.com/page/YJ9NVLPYJ3.jpg)

SHAPE(手の模様) DETECTIONの作成①
 指の模様
Curl
(参考: Pose Detection | Oculus Developers)
Flexion
Abduction
Opposition


# Page. 123

![Page Image](https://bcdn.docswell.com/page/GJ8KPXDKED.jpg)

SHAPE(手の模様) DETECTIONの作成②
 Shapeファイルを作成


# Page. 124

![Page Image](https://bcdn.docswell.com/page/LJLZ18MP7R.jpg)

SHAPE(手のポーズ) DETECTIONの作成③
 Shapeファイルを作成: Bunny模様に合わせて、Shapeを設定する


# Page. 125

![Page Image](https://bcdn.docswell.com/page/47MVW6Y27W.jpg)

SHAPE(手の模様) DETECTIONの作成④
 以下のHierarchyのようにGameObjectを生成
Emp ty GameObject
Emp ty GameObject
3 D Ob ject/Cube


# Page. 126

![Page Image](https://bcdn.docswell.com/page/P7R2YP95J9.jpg)

SHAPE(手の模様) DETECTIONの作成⑤
 PosesのInspector


# Page. 127

![Page Image](https://bcdn.docswell.com/page/PJXDG3QXEX.jpg)

SHAPE(手の模様) DETECTIONの作成⑥
 BunnyのInspector
右手
先作成したBunny shape


# Page. 128

![Page Image](https://bcdn.docswell.com/page/3JKX4Y99ED.jpg)

SHAPE(手の模様) DETECTIONの作成⑦
 Debug CubeのInspector (Bunny模様をすると -&gt; Cubeが緑色になるように)


# Page. 129

![Page Image](https://bcdn.docswell.com/page/LE35L9W9J5.jpg)

TRANSFORM DETECTIONの作成①
 Bunnyに、Transform detectionを追加 (Bunny模様 + 手のひらを前にする -&gt; Cubeが緑色になる)
追加
手のひらを前にする時
追加
De fault設定ファイル
De tectionが２つ(Shape, Transform)になったため、And条件を設定


# Page. 130

![Page Image](https://bcdn.docswell.com/page/8EDDNGK8EG.jpg)

PREFAB POSEの利用①
 RockPose prefabを追加
R oc kPose p refab
右手


# Page. 131

![Page Image](https://bcdn.docswell.com/page/V7PX53KWE8.jpg)

PREFAB POSEの利用②
 Debug CubeのInspector (Rock模様をすると -&gt; Cubeが緑色になるように)


# Page. 132

![Page Image](https://bcdn.docswell.com/page/2JVLP4V97Q.jpg)

CONTROLLERHANDSの設定


# Page. 133

![Page Image](https://bcdn.docswell.com/page/5EGXP1L4JL.jpg)

HANDS / CONTROLLER / CONTROLLER HANDS
 入力方法と見え方の組み合わせ
Prefab名
つかむ/つかまれる
OVRHands
HandGrabInteractor
HandGrabInteractable
OVRControllers
ControlleGrabInteractor
GrabInteractable
OVRControllerHands
HandGrabInteractor
HandGrabInteractable
入力
見え方


# Page. 134

![Page Image](https://bcdn.docswell.com/page/4JQ82DYR7P.jpg)

CONTROLLERHANDSの設定①
 以下のようにHierarchyを変更 (左ControllerHandは右ControllerHandと同様に設定)
Pre fab
Pre fab
A c tive
Pre fab
A c tive
Pre fab


# Page. 135

![Page Image](https://bcdn.docswell.com/page/K742LZWQJ1.jpg)

CONTROLLERHANDSの設定②
 ControllerHandInteractorsのInspector


# Page. 136

![Page Image](https://bcdn.docswell.com/page/LJ1MLRYLEG.jpg)

CONTROLLERHANDSの設定③
 HandPokeInteractorのInspector


# Page. 137

![Page Image](https://bcdn.docswell.com/page/GJW3V1GQJ2.jpg)

CONTROLLERHANDSの設定④
 HandPokeLimiterのInspector


# Page. 138

![Page Image](https://bcdn.docswell.com/page/4EZV4PL3J3.jpg)

CONTROLLERHANDSの設定⑤
 HandGrabInteractorのInspector


# Page. 139

![Page Image](https://bcdn.docswell.com/page/Y7653MWZEV.jpg)

CONTROLLERHANDSの設定⑥
 HandGrabAPIのInspector
追加


# Page. 140

![Page Image](https://bcdn.docswell.com/page/G75YLZM974.jpg)

CONTROLLERHANDSの設定⑦
 HandGrabVisualのInspector


# Page. 141

![Page Image](https://bcdn.docswell.com/page/9J2GLR95JR.jpg)

CONTROLLERHANDSの設定⑧
 HandRayInteractorのInspector


# Page. 142

![Page Image](https://bcdn.docswell.com/page/DEYVQD46EM.jpg)

CONTROLLERHANDSの設定⑨
 OVRControllerHandDataSourceのInspector


# Page. 143

![Page Image](https://bcdn.docswell.com/page/VJNMK66178.jpg)

その他


# Page. 144

![Page Image](https://bcdn.docswell.com/page/YE9NVLLYE3.jpg)

握られているかどうかを判断
 自分が握られているかどうか、GrabInteractableのStateを参照できる。


# Page. 145

![Page Image](https://bcdn.docswell.com/page/GE8KPXXK7D.jpg)

手のコライダー
 手の指１本１本にコライダーを自動で付ける。Is Triggerがfalseのコライダーとなるので注意。


