Quantcast
Channel: Recent Discussions — Mixed Reality Developer Forum
Viewing all articles
Browse latest Browse all 10543

Detecting Motion Controllers in Unity

$
0
0

Hi all,

I'm having trouble detecting the Microsoft Motion Controllers in a Unity scene. I'm using Unity 2017.2b9 with Windows OS Build 16257.1, with the HP Mixed Reality Headset. I check for Motion Controller firmware updates at the beginning of every development period and confirm that they are working with the Windows Mixed Reality Portal before moving on to Unity.

Currently I have an default test scene with a Main Camera controlled by a Mixed Reality headset, a textured cube, and a GameObject with a script using Windows-Specific APIs in accordance to this tutorial. Right now the script just polls for the interaction sources each frame, with an Update() method containing:
var interactionSourceStates = InteractionManager.GetCurrentReading();
Debug.Log("Num Interaction Source States: " + interactionSourceStates.Length);

This debug statement is returning length 0. I've also attempted to use the InteractionManager input events using the example presented in the Motion Controller tutorial, with no success at detection. The headset works and I can see the textured cube. Once I hit the Windows button on the controllers while in Unity and return to the portal, I can successfully see the Motion Controllers and they work just fine.

Attempting to use the Headset and Controller emulator on the desktop in conjunction with the Unity project just crashes my computer with a runtime error at Program: C:\WINDOWS\system32\dwm.exe.

Anything that could help me get in the right direction?

Thanks,
Dale


Viewing all articles
Browse latest Browse all 10543

Trending Articles