0

When trying to set up hand tracking following the hand tracking-documentation unity just shuts down when pressing play without any crashlog/warning. Here are the steps that I have done up until the crash to reproduce my problem:

  1. Creating completely new scene.

  2. Importing the Oculus Integration from asset store.

  3. Switching platform to Android.

  4. Add OVRCameraRig to hierachy.

  5. Change OVRCameraRig's Hand tracking support to "Controllers & Hands" on OVR Manager-script.

Up to step 5 I can press play whenever and it starts as usual. But when doing the next step it crashes everytime.

  1. Add "OVRHandPrefab" to OVRCameraRig > TrackingSpace > LeftHandAnchor/RightHandAnchor.

Has anyone experienced a similar problem to this?

Thanks in advance!

EDIT: Unity does not crash when removing Link cable from laptop. So has certainly something to do with link.

4

2 回答 2

0

您是否尝试过在您的 Quest 耳机中启用手部追踪(未插电时)?

它在设置 -> 实验 -> 启用手部追踪

我还启用了“自动检测手或控制器”。要查看您的手,新的 OVRCustomHandPrefab 可以解决问题。

[编辑]

此外,耳机在连接到 Link 的桌面上放置了几分钟后似乎会导致崩溃。拔下并重新连接将刷新它。

于 2020-04-01T12:25:51.983 回答
0

我不知道你是否能够解决这个问题,但对于面临类似问题的任何其他人,我是这样解决的:

  1. 当您将OVRandPrefab添加到 LeftHandAnchor 和 RightHandAnchor 时,请在检查器中将游戏对象设置为 false。
  2. 然后在您的脚本中,通过在 Update() 中运行此代码来检查是否启用了手部跟踪OVRPlugin.GetHandTrackingEnabled()
  3. 仅在返回 true时将OVRandPrefab都设置为 true,如下所示:OVRPlugin.GetHandTrackingEnabled()

    if (OVRPlugin.GetHandTrackingEnabled())
    {
        ovrHandPrefabLeft.SetActive(true);
        ovrHandPrefabRight.SetActive(true);
    }
    else
    {
        ovrHandPrefabLeft.SetActive(false);
        ovrHandPrefabRight.SetActive(false);
    }
    

这应该避免 Unity 崩溃。

于 2020-05-20T08:25:04.510 回答