Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/301.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2008/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 使用daydream控制器作为指针与Unity UI交互_C#_User Interface_Unity3d_Google Vr_Daydream - Fatal编程技术网

C# 使用daydream控制器作为指针与Unity UI交互

C# 使用daydream控制器作为指针与Unity UI交互,c#,user-interface,unity3d,google-vr,daydream,C#,User Interface,Unity3d,Google Vr,Daydream,我知道GazeInputModule,它允许用户通过头部移动与Unity的UI系统进行交互。我想知道是否有可能使用Daydream的控制器作为与用户界面交互的指针。非常感谢您提供的任何提示或建议。在最新的GVR Unity SDK中,有白日梦的示例场景。在使用GVRController进行交互时检查它们。我假设您使用的是最新版本,它内置了对GVR的支持。下面是要遵循的步骤: 1。将GVRPointerInputModule添加到事件系统: 2。在场景中添加以下预设: 3。将GVRPointe

我知道GazeInputModule,它允许用户通过头部移动与Unity的UI系统进行交互。我想知道是否有可能使用Daydream的控制器作为与用户界面交互的指针。非常感谢您提供的任何提示或建议。

在最新的GVR Unity SDK中,有白日梦的示例场景。在使用GVRController进行交互时检查它们。我假设您使用的是最新版本,它内置了对GVR的支持。下面是要遵循的步骤:

1。将GVRPointerInputModule添加到事件系统:

2。在场景中添加以下预设:

3。将GVRPointerGraphicRaycaster连接到世界空间画布,并将MainCamera设置为画布组件中的事件摄影机:

4。最后,确保从播放器设置中添加启用虚拟现实支持,并添加Daydream SDK:

注意:移除GazeInputModule、GraphicRaycaster等旧组件

附加:

您可以根据需要更改控制器的手臂模型(目前它有指针、手腕、肘部和肩部选项)

我希望这有帮助