Search Unity

Question How to set an app 3d on Hololens2?

Discussion in 'AR/VR (XR) Discussion' started by yukimii, Sep 17, 2020.

  1. yukimii

    yukimii

    Joined:
    Jul 28, 2020
    Posts:
    6
    I release an app on my Hololens2 but it turns out to be an 2d app as I see in Game Window in Unity. I've check all the checkbox related to XR in XR Management and Player Settings.
    Here is my Main Camera and XR Settings.
    upload_2020-9-17_15-57-59.png
    upload_2020-9-17_15-57-8.png upload_2020-9-17_15-57-28.png
     
  2. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958
    You'll need to check the player log to see what errors may be happening. You might also wish to make use of the Holographic Remoting (Window->XR->Windows XR Holographic Remoting) and see if you can get the error reported into the editor log as well.
     
  3. yukimii

    yukimii

    Joined:
    Jul 28, 2020
    Posts:
    6
    Thanks! Here is the error log:
    InvalidCastException: Failed to set SpatialCoordinateSystem from IntPtr
    By the way, there is also something wrong with my Windows XR Holographic Remoting. I type the correct IP address as I get from Hololens, but connection just breaks down with the failure reason NONE.
     
  4. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958
    Are you using MRTK?
     
  5. yukimii

    yukimii

    Joined:
    Jul 28, 2020
    Posts:
    6
    Ummm, no. The problem is solved after I update my project to 2019.2.