Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question NON VR build(APK) from VR Project

Discussion in 'VR' started by Viitorcloud, Sep 22, 2021.

  1. Viitorcloud

    Viitorcloud

    Joined:
    May 22, 2018
    Posts:
    3
    I have a project which is on both the Android Mobile platform and Oculus Quest.

    So I have two projects right now and manually copy and paste the code from one project to another.

    So my question is "Is there any way to create a normal Android Build from VR enabled(Oculus XR plugin enable in XR plugin management) Project" with some tick and untick from XR plugin Management or something?
     
  2. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958
    You can script XR Management to add or remove supported loaders. If there are no loaders on the build target, XR will not be initialized and no Oculus XR SDK plugin binaries should be included.

    As a double measure I would make sure that Initialize on start is disabled/enabled for your build target as well depending on need.

    See "Customize build and runtime settings" in the XR Management docs here: End-user documentation | XR Plugin Management | 4.1.0 (unity3d.com)