Search Unity

The question for mode of 2d and 3d project in unity project based ons hololens.

Discussion in 'VR' started by songsongsongsong, May 11, 2019.

  1. songsongsongsong

    songsongsongsong

    Joined:
    Mar 6, 2019
    Posts:
    15
    I am developing a hololens application by unity editor 2019.1.0f2 through windows platform, and there are some questions about the mode of 2d and 3d.
    At first, I created a 3d project and the application is a 3D mode which could show the holograms beyond a window. After I import some packages and delete them, the application becomes a window in front of me.
    I have checked the mode of 2d or 3d in the project settings, it is still 3d mode. But actually, the application is in a plane window.
    how could I switch the application to behave beyond the window?
    thousand thanks
     
    Last edited: May 11, 2019
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,674
    In the player settings, under XR settings you need to enable "Virtual Reality Supported" and add "Windows Mixed Reality" as the first item. Also, make sure to sure D3D build type.
     
  3. Recky256

    Recky256

    Joined:
    Dec 1, 2014
    Posts:
    11
    Hi. My apps also launch on 2D. I checked those settings. Any suggestions?
    It works fine in Holographic remote.

    Unity 2019.1.2f1
    3D Templete
    HoloLens RS5

    Thanks.
     
  4. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958
    Do either of you have a small repro project that we can look at to see what is up?
     
  5. Recky256

    Recky256

    Joined:
    Dec 1, 2014
    Posts:
    11
    New project or MRTKv2 cause it after configure recommended settings.
    Honestly, I want the Unity 2019 project working on HoloLens....
     
  6. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958
  7. JasonCostanza

    JasonCostanza

    Unity Technologies

    Joined:
    May 23, 2017
    Posts:
    404
    I have a question also, do you have Holographic Remoting Support enabled under the XR Settings? If so, we have at least one bug around some behavior that affect the way the app launches which aligns to what you're reporting. I would love to see a repro project if you can provide one to us. Much appreciated!
     
  8. Recky256

    Recky256

    Joined:
    Dec 1, 2014
    Posts:
    11
    yes. New empty project also happen.
     
  9. Recky256

    Recky256

    Joined:
    Dec 1, 2014
    Posts:
    11
    Hello. I solved the problem that launch apps on 2D.
    I did these things.
    [1] Update Windows SDK to 10.0.18362.0 (I used Insider Preview before)
    [2] In Player Settings on Unity, XR Settings > Uncheck WSA Holographoc Remoting Suported (You must!)
    It works on Unity 2019.1.2f1
    HoloLens RS5
    Visual Studio 2017

    Thank you.
     
    Brad-Lee likes this.
  10. Brad-Lee

    Brad-Lee

    Joined:
    May 26, 2013
    Posts:
    4
    Thanks, this helped me :)
     
  11. JasonCostanza

    JasonCostanza

    Unity Technologies

    Joined:
    May 23, 2017
    Posts:
    404
    Ah yes, that is a potential behavior if the WSA Remoting check box is enabled. I have a conversation scheduled to review the design of this feature because I find it incredibly confusing that you launch into 2D flat when that checkbox is on.