Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Oculus Quest 2 build open only in window

Discussion in 'VR' started by gamerboiyolo, Nov 9, 2021.

  1. gamerboiyolo

    gamerboiyolo

    Joined:
    Jun 8, 2013
    Posts:
    3
    Trying to setup Unity to build for Oculus Quest 2. Selected the VR template upon creating a project. For some reason, when I build and run, the build only show up in a contained window in Oculus quest 2. Is there a way to make it "full screen" or full VR immersive?

    Thanks for the help.
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,240
    in XR management, did you select 'Oculus' under the android tab?
    And is Initialize XR on startup on?
     
  3. gamerboiyolo

    gamerboiyolo

    Joined:
    Jun 8, 2013
    Posts:
    3
    Yup. What do you mean by initialize XR on startup on? Is this what you are referring to?
    upload_2021-11-11_0-22-36.png
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,240
  5. gamerboiyolo

    gamerboiyolo

    Joined:
    Jun 8, 2013
    Posts:
    3
    yes just got it to work.
     
    DevDunk likes this.
  6. wechat_os_Qy01eDJfSV7CWSHuAPwDqgMCA

    wechat_os_Qy01eDJfSV7CWSHuAPwDqgMCA

    Joined:
    Aug 4, 2022
    Posts:
    8
    This is helpful. Thanks! I didn't select 'Oculus' under the android tab
     
  7. Gasteryoug

    Gasteryoug

    Joined:
    Feb 13, 2023
    Posts:
    2
    Hello i would need some help as i can't tick the oculus button in Unity. HELP !
     

    Attached Files:

  8. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,240
    Disable OpenXR
     
  9. BJump

    BJump

    Joined:
    Apr 30, 2023
    Posts:
    12
    so I have an interesting issue.

    I got the build onto my oculus, and it has all the appropriate Materials, but now my scene in the unity editor turned pink, build said successful, playing the game on the oculus stand alone isn't pink but everything in my unity editor is pink

    if I play from the unity editor, for debugging its pink on the oculus too.
     
  10. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,240
    Make sure all Quality tiers use the same render pipeline
     
  11. DhiaSendi

    DhiaSendi

    Joined:
    May 16, 2018
    Posts:
    42
    What do you suggest if I'm planning to use OpenXR to work with HTC Vive and use Oculus quest 2 for testing?
    Disable OpenXR when building to Quest 2 and then enable it when targeting HTC Vive?
     
  12. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,240
    Do you mean the vive flow or focus or something?
    If you mean the actual htc vive, simply tick Openxr for desktop and oculusxr for quest.
    Openxr also runs on quest natively btw.
     
  13. DhiaSendi

    DhiaSendi

    Joined:
    May 16, 2018
    Posts:
    42
    Thank you for your response.
    I'm talking about HTC XR Elite, when I tick OpenXR works fine on it, but the same build only show up in a contained window on Quest 2
     
  14. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,240
    Yes you need one build per vendor with openxr on android
     
    DhiaSendi likes this.