InteractionSourceExtensions will not render WMR motion controller when "None" is set in VR SDK settings.
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:
- Go to 'Build Settings > Player Settings > XR Settings'
- Add "None" before Windows Mixed Reality in the set of SDKs
- 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; - 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
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.
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.