Commit 901a827
lawwong
## Changes for v1.7.0:
* New features
- Add notification when new version released on [Github](https://github.com/ViveSoftware/ViveInputUtility-Unity/releases).
- Add **VRModule** class to bridge various VR SDK. It currently supports SteamVR plugin, Oculus VR plugin and Unity native VR/XR interface.
- **void VRModule.Initialize()**: Create and initilize VRModule manager instance.
- **VRModuleActiveEnum VRModule.activeModule**: Returns the activated module.
- **IVRModuleDeviceState VRModule.GetCurrentDeviceState(uint deviceIndex)**: Returns the virtual VR device status.
- **event NewPosesListener VRModule.onNewPoses**: Invoked after virtual VR device status is updated.
- **event DeviceConnectedListener VRModule.onDeviceConnected**: Invoked after virtual VR device is connected/disconnected.
- **event ActiveModuleChangedListener VRModule.onActiveModuleChanged**: Invoked when a VR module is activated.
- New binding interface using overlay UI. By default, the binding interface can be enabled by pressing RightShift + B in play mode.
- 
- 
- 
- Add define symbols
- **VIU_PLUGIN**: Defined when Vive Input Utility plugin is imported in the project.
- **VIU_STEAMVR**: Defined when SteamVR plugin is imported in the project.
- **VIU_OCULUSVR**: Defined when OculusVR plugin (OVRPlugin) is imported in the project.
- **VIU_BINDING_INTERFACE_SWITCH**: Define it to let the project be able to switch binding interface by pressing RightShift + B in play mode.
- **VIU_EXTERNAL_CAMERA_SWITCH**: Define it to let the project be able to switch external camera quad view by pressing RightShift + M in play mode.
- Add new role HandRole.ExternalCamera (Alias for HandRole.Controller3).
- By default, it is mapping to the 3rd controller, if 3rd controller not available, then mapping to the first valid generic tracker.
- ExternalCameraHook uses mapping as the default tracking target.
* New componts
- [ViveInputVirtualButton] Use this helper component to combine multiple Vive inputs into one virtual button.
* Improvement
- [ViveInput] Add more controller buttons, use ViveInput.GetPress(role, buttonEnum) to get device button stat
- **System** (Only visible when sendSystemButtonToAllApps option is on)
- **Menu**
- **MenuTouch**
- **Trigger**
- **TriggerTouch**
- **Pad**
- **PadTouch**
- **Grip**
- **GripTouch**
- **CapSenseGrip**
- **CapSenseGripTouch**
- **AKey**
- **AKeyTouch**
- **OuterFaceButton** (Alias for Menu)
- **OuterFaceButtonTouch** (Alias for MenuTouch)
- **InnerFaceButton** (Alias for Grip)
- **InnerFaceButtonTouch** (Alias for GripTouch)
- [ViveInput] Add controller axis enum, use ViveInput.GetAxis(role, axisEnum) to get device axis value
- **PadX**
- **PadY**
- **Trigger**
- **CapSenseGrip**
- **IndexCurl**
- **MiddleCurl**
- **RingCurl**
- **PinkyCurl**
- [ViveRole] Role mapping/binding mechanism is improved and become more flexible.
- Now different devices can bind to same role at the same time.
- If a unconnected device is bound to a role, that role can still map to other connected device.
- [ViveRole] Obsolete functions that retrieve device status and property, use static API in VRModule instead.
- **ViveRole.TryGetDeviceIndexBySerialNumber**: Use VRModule.TryGetDeviceIndex instead.
- **ViveRole.GetModelNumber**: Use VRModule.GetCurrentDeviceState(deviceIndex).modelNumber instead
- **ViveRole.GetSerialNumber**: Use VRModule.GetCurrentDeviceState(deviceIndex).serialNumber instead
- **ViveRole.GetDeviceClass**: Use VRModule.GetCurrentDeviceState(deviceIndex).deviceClass instead
- [ViveRoleBindingsHelper] Now will automatically load bindings from "vive_role_bindings.cfg", no need to be in the scene to work.
- [RenderModelHook] Add override model and shader option.
- [ExternalCameraHook] Now ExternalCameraHook will track the HandRole.ExternalCamera by default.
- [ExternalCameraHook] Now will be added into scene automatically if "externalcamera.cfg" exist when start playing, no need to add to scene manually.
- [ExternalCameraHook] You can now enable static External Camera quad view (without tracking to a device) if
1. VIU_EXTERNAL_CAMERA_SWITCH symbol is defined.
2. externalcamera.cfg exist.
3. RightShift + M pressed in play mode.
- [BasicGrabbable, StickyGrabbable, Draggable] Add unblockable grab/drag option.
* Bug fix
- [ViveRoleProperty] Fix not handling serialized data right in inspector.
- [PoseEaser] Now use unscaled time instead to avoid from being effected by time scale.1 parent 8f8ef7b commit 901a827
File tree
208 files changed
+29829
-7304
lines changed- Assets/HTC.UnityPlugin
- ColliderEvent
- Pointer3D
- Raycaster/Base
- PoseTracker
- Base
- PoseModifiers
- Utility
- Attribute
- Editor
- Container
- VRModule
- Editor
- Modules
- Editor
- ViveInputUtility
- Examples
- 0.Tutorial
- 1.UGUI
- 2.2DDragDrop
- 3.3DDrag
- Scripts
- 4.Teleport
- 5.ColliderEvent
- Scripts
- 6.ControllerManagerSample
- Scripts
- 7.RoleBindingExample
- Scripts
- Models/pyramid/Materials
- Prefabs
- Resources
- Animation
- Models
- Sprites
- Scripts
- Editor
- Misc
- Editor
- ViveColliderEvent
- ViveInput
- Editor
- VivePose
- ViveRaycaster
- ViveRole
- BindingInterface
- BindingConfigSample
- Editor
- RoleMaps
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
208 files changed
+29829
-7304
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
225 | 224 | | |
226 | 225 | | |
227 | 226 | | |
228 | | - | |
229 | | - | |
| 227 | + | |
| 228 | + | |
230 | 229 | | |
231 | 230 | | |
232 | 231 | | |
| |||
Lines changed: 38 additions & 54 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
50 | 57 | | |
| 58 | + | |
51 | 59 | | |
52 | 60 | | |
53 | 61 | | |
54 | 62 | | |
55 | 63 | | |
56 | 64 | | |
57 | 65 | | |
58 | | - | |
| 66 | + | |
59 | 67 | | |
60 | | - | |
| 68 | + | |
61 | 69 | | |
62 | 70 | | |
63 | 71 | | |
| |||
69 | 77 | | |
70 | 78 | | |
71 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
72 | 86 | | |
73 | 87 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
78 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
79 | 99 | | |
80 | | - | |
| 100 | + | |
| 101 | + | |
81 | 102 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | 103 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
96 | 108 | | |
97 | 109 | | |
98 | 110 | | |
99 | 111 | | |
100 | 112 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
| 113 | + | |
124 | 114 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
| 115 | + | |
| 116 | + | |
133 | 117 | | |
134 | 118 | | |
135 | | - | |
| 119 | + | |
136 | 120 | | |
137 | 121 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
150 | 153 | | |
151 | 154 | | |
152 | 155 | | |
| |||
485 | 488 | | |
486 | 489 | | |
487 | 490 | | |
488 | | - | |
| 491 | + | |
489 | 492 | | |
490 | 493 | | |
491 | 494 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
Lines changed: 20 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | | - | |
| 17 | + | |
19 | 18 | | |
20 | | - | |
21 | | - | |
| 19 | + | |
22 | 20 | | |
23 | | - | |
| 21 | + | |
| 22 | + | |
24 | 23 | | |
25 | | - | |
| 24 | + | |
26 | 25 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
45 | 33 | | |
46 | 34 | | |
47 | 35 | | |
48 | 36 | | |
49 | 37 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 38 | + | |
57 | 39 | | |
58 | 40 | | |
59 | 41 | | |
| |||
65 | 47 | | |
66 | 48 | | |
67 | 49 | | |
68 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
69 | 53 | | |
70 | | - | |
71 | | - | |
| 54 | + | |
| 55 | + | |
72 | 56 | | |
73 | 57 | | |
74 | 58 | | |
| |||
0 commit comments