Commit e229b68
committed
Update to v1.11.0
* New Features
- Add compatibility with **Unity 2020.1**
- Add support for **Unity XR Platform** (OpenVR, Oculus, and Windows MR)
- VIU Settings automatically installs proper XR Loader from **PackageManager** for supported devices
- **OpenVR XR Plugin**
- **Oculus XR Plugin**
- **Windows XR Plugin**
- Add support for Oculus controller render model (Requires [Oculus SDK](https://assetstore.unity.com/packages/tools/integration/oculus-integration-82022))
- Add new **ControllerButton.DPadCenter** & **ControllerButton.DPadCenterTouch**
- Also change **VIUSettings.virtualDPadDeadZone** default value from 0.15 to **0.25**
- This settings is not available in VIU Settings UI yet, but can be manually modified in HTC.UnityPlugin/ViveInputUtility/Resources/**VIUSettings.asset**
* Changes
- Now use relative path when choosing Oculus Android AndroidManifest.xml file with picker (#175)
- Update **ControllerManagerSample**
- Fix support for StickyGrabbables
- Clean up side cases where updateactivity was needed
- Add more button options for laser pointer
- Fix typo
- Slightly change **ColliderEventCaster**'s behaviour
- Now IColliderEventPressUpHandler will be treggered only if IColliderEventPressDownHandler also implemented
- This is for aligning IPointerUpHandler and IPointerDownHandler behaviour
- Improve **Grabbable**
- Now **BasicGrabbable** & **StickyGrabbable** able to accept more then one grab button
- Add new property **primaryGrabButton** so it can be specified with VIU ControllerButton
- Obsolete property grabButton and add new property **secondaryGrabButton** as a substitute
- Note that you must setup **ViveColliderEventCaster** properly to send the specified grab button event
- Improve **Teleportable**
- Now **Teleportable** able to accept more then one teleport button
- Add new property **PrimeryTeleportButton** so it can specify with VIU ControllerButton
- Obsolete property teleportButton and add new property **SecondaryTeleportButton** as a substitute
- Note that you must setup **ViveRaycaster** properly to send the specified teleport button event
- Add new property **TriggeredType**
- **ButtonUp** : perform teleport on button press up (default)
- **ButtonDown** : perform teleport on button press down
- **ButtonClick** : perform teleport on button press up only if pointed object when press down/up are the same
- Add new property **RotateToHitObjectFront**
- When set to true, teleportation will rotate pivot front to hit object front
- Add new property **TeleportToHitObjectPivot**
- When set to true, teleportation will move pivot to hit object pivot instead of the hit point
- Add new property **UseSteamVRFade**
- Only works when [SteamVR Plugin](https://assetstore.unity.com/packages/tools/integration/steamvr-plugin-32647) is installed
- When set to false or SteamVR Plugin is not installed, the teleportation will delay for half of fadeDuration without fading effect
- This provides an option for developer to implement their custom fading effect in the OnBeforeTeleport event
- Add event **OnBeforeTeleport(Teleportable src, RaycastResult hitResult, float delay)**
- Emit before fade duration start counting down
- Usually delay argument is half of fade duration (0 if fadeDuration is ignored)
- Possible usage is to start custom fading effect in this callback
- Add event **OnAfterTeleport(Teleportable src, RaycastResult hitResult, float delay)**
- Emit after teleportation is performed
- Add static event **OnBeforeAnyTeleport(Teleportable src, RaycastResult hitResult, float delay)**
- Static version of OnBeforeTeleport
- Emit before OnBeforeTeleport
- Add static event **OnAfterAnyTeleport(Teleportable src, RaycastResult hitResult, float delay)**
- Static version of OnAfterTeleport
- Emit before OnAfterTeleport
- Add property **AdditionalTeleportRotation**
- The rotation value will be multiplied on the target (around pivot) when teleporting
- Possible usage is to set the value (according to other input like pad or joystick direction) in the OnBeforeTeleport callback
- Add method **AbortTeleport()**
- Cancel the teleportation during fading
- Possible usage is to abort in the OnBeforeTeleport callback to perform a custom teleportation
- Another usage is to interrupt the fade-in effect progress so that the Teleportable able to trigger next teleport event immediatly
* Bug Fixes
- Fix left Cosmos controller did not bind button X and Y
- Fix saving of Oculus Android XML path setting (#175)
- Fix applying some recommended settings didn't trigger editor to compile
- Fix "recommended settings" button in VIU Settings disappeared after exiting editor play modeFile tree
203 files changed
+6126
-601
lines changed- Assets/HTC.UnityPlugin
- ColliderEvent
- Pointer3D
- RaySegmentGenerator
- Base
- RaycastMethod
- Base
- Raycaster
- Base
- StandaloneRaycaster
- PoseTracker
- Base
- Editor
- PoseModifiers
- Utility
- Attribute
- Editor
- ContainerPool
- Container
- VRModule
- Editor
- Modules
- Editor
- ViveInputUtility
- .asmdefs
- Oculus
- Examples
- 5.ColliderEvent/Scripts
- 6.ControllerManagerSample/Scripts
- Resources/Models
- Scripts
- Editor
- VRPlatformSettings
- Misc
- Editor
- ExCamConfigInterface
- OculusVRExtension
- SteamVRExtension
- Editor
- PartialInputBindings
- VIUSettingsPartials
- ViveColliderEvent
- ViveInput
- Editor
- VivePose
- ViveRaycaster
- ViveRole
- BindingInterface
- Editor
- RoleMaps
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
203 files changed
+6126
-601
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
Lines changed: 50 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
71 | 78 | | |
72 | 79 | | |
73 | 80 | | |
74 | 81 | | |
75 | 82 | | |
76 | 83 | | |
77 | | - | |
| 84 | + | |
78 | 85 | | |
79 | 86 | | |
80 | 87 | | |
| |||
94 | 101 | | |
95 | 102 | | |
96 | 103 | | |
97 | | - | |
| 104 | + | |
98 | 105 | | |
99 | 106 | | |
100 | 107 | | |
| |||
162 | 169 | | |
163 | 170 | | |
164 | 171 | | |
165 | | - | |
| 172 | + | |
166 | 173 | | |
167 | 174 | | |
168 | 175 | | |
| |||
224 | 231 | | |
225 | 232 | | |
226 | 233 | | |
227 | | - | |
| 234 | + | |
228 | 235 | | |
229 | 236 | | |
230 | 237 | | |
| |||
248 | 255 | | |
249 | 256 | | |
250 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
251 | 265 | | |
252 | 266 | | |
253 | | - | |
254 | | - | |
255 | 267 | | |
256 | 268 | | |
257 | 269 | | |
258 | 270 | | |
259 | 271 | | |
260 | 272 | | |
261 | 273 | | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
| 274 | + | |
266 | 275 | | |
267 | 276 | | |
268 | 277 | | |
269 | 278 | | |
| 279 | + | |
270 | 280 | | |
271 | 281 | | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
272 | 286 | | |
273 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
274 | 293 | | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
| 294 | + | |
279 | 295 | | |
280 | | - | |
| 296 | + | |
281 | 297 | | |
282 | 298 | | |
283 | 299 | | |
284 | | - | |
285 | 300 | | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
| 301 | + | |
| 302 | + | |
300 | 303 | | |
| 304 | + | |
| 305 | + | |
301 | 306 | | |
302 | 307 | | |
303 | 308 | | |
| |||
320 | 325 | | |
321 | 326 | | |
322 | 327 | | |
323 | | - | |
| 328 | + | |
324 | 329 | | |
325 | 330 | | |
326 | 331 | | |
| |||
331 | 336 | | |
332 | 337 | | |
333 | 338 | | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | 339 | | |
339 | 340 | | |
340 | 341 | | |
| |||
362 | 363 | | |
363 | 364 | | |
364 | 365 | | |
365 | | - | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
366 | 372 | | |
367 | 373 | | |
368 | 374 | | |
| |||
376 | 382 | | |
377 | 383 | | |
378 | 384 | | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
383 | 389 | | |
384 | 390 | | |
385 | 391 | | |
| |||
420 | 426 | | |
421 | 427 | | |
422 | 428 | | |
| 429 | + | |
| 430 | + | |
423 | 431 | | |
424 | 432 | | |
425 | 433 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
55 | 60 | | |
56 | 61 | | |
57 | 62 | | |
| |||
90 | 95 | | |
91 | 96 | | |
92 | 97 | | |
93 | | - | |
| 98 | + | |
94 | 99 | | |
95 | 100 | | |
96 | 101 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments