Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

LWRP works incorrectly in UWP

Discussion in 'Windows Mixed Reality' started by Wingkou_Loeng, Sep 27, 2019.

  1. Wingkou_Loeng

    Wingkou_Loeng

    Joined:
    Jun 6, 2019
    Posts:
    2
    Currently, I try to port my old hololens project to LWRP-VR, but meets lots of problem after upgrade. So, I try to start a new project instead, still meets some problems.

    The problem is quiet simple to reproduce(unity 2018.4.8f1 and 2019.1.4f1):
    1. start from LWRP-VR template
    2. switch target platform to UWP in player settings.
    3. Boom! The camera seems not correct! Even in a scene with a cube only!

    in the camera preview, everything looks fine.
    upload_2019-9-27_15-48-18.png
    but when I click run, in the player window, it looks not same as the preview.
    upload_2019-9-27_15-49-42.png
    and I noticed that an error is shown in console, which does not shown in PC standalone.
    upload_2019-9-27_15-51-11.png
    What should I check?
     
    Last edited: Sep 27, 2019
  2. Wingkou_Loeng

    Wingkou_Loeng

    Joined:
    Jun 6, 2019
    Posts:
    2
    the problem above seems not influence the other things.
    The second problem is the display is inverted (flipped) in y axis:
    upload_2019-9-27_16-38-0.png
     
  3. JasonCostanza

    JasonCostanza

    Unity Technologies

    Joined:
    May 23, 2017
    Posts:
    346
    I believe the LWRP VR template was removed in 19.1 for various issues it had. I would try to use the non-VR template and then toggle on necessary XR settings afterwards
     
  4. JasonCostanza

    JasonCostanza

    Unity Technologies

    Joined:
    May 23, 2017
    Posts:
    346