Thursday, November 17, 2022
HomeGame Developmentunity - Manually attempting to start out AR Core XR Loader, however...

unity – Manually attempting to start out AR Core XR Loader, however its Subsystems will not begin?


I am attempting to implement that in one scene I begin the Google Cardboard XR Loader, and within the different scene I begin the AR Core/AR Package XR Loader.

That is how I begin the loader required for the scene:

 var init = XRLoaderToBeLoaded.Initialize();
 var begin = XRLoaderToBeLoaded.Begin();
 //  (and deinit+cease them when leaving the scene)

Each XR Loaders are initialized and began efficiently, they return true.

With Google Cardboard all the pieces works high-quality.

With AR Core I make the AR Session lively after the XR Loader is totally began (I even tried ready 5 seconds), however it says mainly that no AR Subsystems can be found.

No lively UnityEngine.XR.ARSubsystems.XRCameraSubsystem is obtainable.
Please be certain that a legitimate loader configuration exists within the XR
mission settings.

No lively UnityEngine.XR.ARSubsystems.XRSessionSubsystem is obtainable.
Please be certain that a legitimate loader configuration exists within the XR
mission settings.

No lively UnityEngine.XR.ARSubsystems.XRPlaneSubsystem is obtainable.
Please be certain that a legitimate loader configuration exists within the XR
mission settings.

No lively UnityEngine.XR.ARSubsystems.XRRaycastSubsystem is obtainable.
Please be certain that a legitimate loader configuration exists within the XR
mission settings.

No lively UnityEngine.XR.ARSubsystems.XRAnchorSubsystem is obtainable.
Please be certain that a legitimate loader configuration exists within the XR
mission settings.

No lively UnityEngine.XR.XRInputSubsystem is obtainable. Please guarantee
{that a} legitimate loader configuration exists within the XR mission settings.

That is the stacktrace for these errors:

UnityEngine.XR.ARFoundation.SubsystemLifecycleManager`3:GetActiveSubsystemInstance()
UnityEngine.XR.ARFoundation.SubsystemLifecycleManager`3:EnsureSubsystemInstanceSet()
UnityEngine.XR.ARFoundation.SubsystemLifecycleManager`3:OnEnable()

Evidently for some motive XRLoader.Begin() would not begin (all?) the Subsystems it wants.

I attempted beginning them with XRGeneralSettings.Occasion.Supervisor.StartSubsystems(); and it certainly began the subsystems! Now AR works as nicely!

However the issue is that this technique at all times begins the subsystems of the primary loader within the loader record.

So once I enter Google Cardboard VR… AR Core subsystems begin up!

Which does not appear to trigger any apparent points proper now, however it’s higher to be cautious: they should not be working in VR for certain.

Any thought how may I clear up this problem in a pleasant method? Is that this a design flaw within the XR Administration Package? Am I misunderstanding one thing? Thanks upfront!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments