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. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Question How are you supposed to use XRPackageMetadataStore.AssignLoader?

Discussion in 'AR/VR (XR) Discussion' started by ComeOnAndSam, Jul 8, 2022.

  1. ComeOnAndSam

    ComeOnAndSam

    Joined:
    Nov 8, 2016
    Posts:
    46
    https://docs.unity3d.com/Packages/c...nagement.Metadata.XRPackageMetadataStore.html

    I don't understand the use of this, because Unity isn't letting me use it. It exists to allow you to swap in multiple different XRManagerSettings assets, but you can't make multiple XRManagerSettingsAssets. If you put one in your assets folder, Unity automatically turns it into an XRGeneralSettingsPerBuildTarget asset, so there's never any way for you to have an XRManagerSettings assets that you can plug into this function. Which means, as far as I can tell, there's no way for you to change XR settings via a script.

    Additionally, I have no clue how Im supposed to know what "loaderTypeName" is supposed to be. Im trying to do this for Oculus OVR and OpenXR but I've found no reference to a "loaderTypeName" for those packages anywhere.
     
  2. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958