因为需要做Web端的VR项目所以研究了一下web VR这个插件
主要是做个备忘录https://github.com/MozillaReality/unity-webxr-export
其实很简单 直接上链接
1.插件下载以及浏览及兼容问题
https://github.com/MozillaReality/unity-webxr-export/blob/master/README.md
2.如何在unity中使用Web XR 和发布WebGL
https://github.com/MozillaReality/unity-webxr-export/blob/master/docs/project-setup.md
注意设置VR支持是设置这个
3.手柄各按键的使用
https://github.com/MozillaReality/unity-webxr-export/blob/master/docs/controllers.md
如果 InputManager.asset下载不下来也可以复制内容到
your Project /ProjectSettings/InputManager.asset
就是在后面加入以下内容
- serializedVersion: 3
m_Name: TriggerLeft
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton:
altNegativeButton:
altPositiveButton:
gravity: 1000
dead: 0.01
sensitivity: 1.2
snap: 0
invert: 0
type: 2
axis: 8
joyNum: 0
- serializedVersion: 3
m_Name: TriggerRight
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton:
altNegativeButton:
altPositiveButton:
gravity: 1000
dead: 0.01
sensitivity: 1.2
snap: 0
invert: 0
type: 2
axis: 9
joyNum: 0
- serializedVersion: 3
m_Name: GripLeft
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton:
altNegativeButton:
altPositiveButton:
gravity: 1000
dead: 0.01
sensitivity: 1.2
snap: 0
invert: 0
type: 2
axis: 10
joyNum: 0
- serializedVersion: 3
m_Name: GripRight
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton:
altNegativeButton:
altPositiveButton:
gravity: 1000
dead: 0.01
sensitivity: 1.2
snap: 0
invert: 0
type: 2
axis: 11
joyNum: 0