Editor Scripting: How to edit XR Plug-In provider by script?

Hi!
I’m trying to edit the information showed in the picture below using an editor script but I can’t find any documentation on this.

How to toggle Plugin-In providers?

Thank you.

Hi @ambiensvr , I’m stuck with the same problem, did you manage to solve it?

Thank you!

Edit :

Found the answer here : https://forum.unity.com/threads/editor-programmatically-set-the-vr-system-in-xr-plugin-management.972285/

Here is what I’m using now :

XRGeneralSettingsPerBuildTarget buildTargetSettings = null;
EditorBuildSettings.TryGetConfigObject(XRGeneralSettings.k_SettingsKey, out buildTargetSettings);
XRGeneralSettings settings = buildTargetSettings.SettingsForBuildTarget(BuildTargetGroup.Android);
  
XRPackageMetadataStore.RemoveLoader(settings.Manager, "Unity.XR.Oculus.OculusLoader", BuildTargetGroup.Android);
XRPackageMetadataStore.AssignLoader(settings.Manager, "Unity.XR.WaveXR.WaveXRLoader", BuildTargetGroup.Android);

Hi, can anybody tell how to set the feature group in the openxr loader? For instance switching Meta Quest feature group and pico xr feature group in the build pipeline via script?