Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity wants to learn about your experiences working on a Unity project today. We'd like to hear from you via this survey.
    Dismiss Notice
  3. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  4. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  5. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

How do I enable/disable XR Plugins from a script?

Discussion in 'AR/VR (XR) Discussion' started by FlightOfOne, Sep 12, 2020.

  1. FlightOfOne

    FlightOfOne

    Joined:
    Aug 1, 2014
    Posts:
    424
    I want to enable the target plugin, depending on what device is being used. E.g. if player has an Oculus I want to enable that. Is this the right way to approach this? How do I go about doing this via code?

    upload_2020-9-12_7-0-37.png
     
    Protozoaire and Reverbing like this.
unityunity