Commit b2afbda
committed
feat(Interaction): add RequireComponents to grab and touch
Since InteractGrab and InteractTouch don't work unless certain
components are a part of the controller, the RequireComponent
attributes will make sure those components are there or automatically
add them. They also keep required components from being removed in
the Unity editor.1 parent be64a8c commit b2afbda
File tree
2 files changed
+2
-0
lines changed- Assets/SteamVR_Unity_Toolkit/Scripts
2 files changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
0 commit comments