MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

InteractionSourceExtensions will not render WMR motion controller when "None" is set in VR SDK settings.

Open arufolo opened this issue 7 years ago • 2 comments

Describe the bug

Cannot render WMR Motion controllers when "None" is selected as first option in VR SDK's under XR Settings.

It appears as though the following line: IReadOnlyList<SpatialInteractionSourceState> sources = SpatialInteractionManager.GetForCurrentView().GetDetectedSourcesAtTimestamp(PerceptionTimestampHelper.FromHistoricalTargetTime(DateTimeOffset.Now));

in the InteractionSourceExtensions class will return an empty array whenever "None" is set as the first option in VR SDK's. However, controllers appear to still be fully functional.

To reproduce

Steps to reproduce the behavior:

  1. Go to 'Build Settings > Player Settings > XR Settings'
  2. Add "None" before Windows Mixed Reality in the set of SDKs
  3. Set WMR to load programmatically yield return new WaitForEndOfFrame(); UnityEngine.XR.XRSettings.LoadDeviceByName(XRSettings.supportedDevices[1]); yield return new WaitForEndOfFrame(); UnityEngine.XR.XRSettings.enabled = true;
  4. Run Scene and notice WMR controllers not rendering

Expected behavior

WMR controllers should render

  • Unity Version [2018.4.0f1]
  • MRTK Version [v2.0]

Target Platform (please complete the following information)

  • WMR immersive

arufolo avatar Jun 04 '19 20:06 arufolo

This issue has been marked as stale by an automated process because it has not had any recent activity. It will be automatically closed in 30 days if no further activity occurs. If this is still an issue please add a new comment with more recent details and repro steps.

stale[bot] avatar Feb 20 '20 02:02 stale[bot]

This issue has been closed by an automated process because it is stale. If this is still an issue please add a new comment with more recent details and repro steps.

stale[bot] avatar Mar 21 '20 04:03 stale[bot]