Kinect and Unity error at play

Hi I’m new in the world of Unity but i want to collaborate with the community.

I’ve executed examples and proyects with Kinect and Unity only with oficial software. I’ve followed some tutorials and examples and I just installed the Miscrosoft Kinect for windows and the GAK package of Unity that is a compilant of resources, projects, examples and prefabs realated to Kinect.

Unfortunately i get an error at the moment of play with the sensor, “HRESULT 0x80310001 The data frame not available” although i play fine without trouble with the sensor and usability in the game, then I stop the program and when i want to play the game again the IDE Unity freeze totally and doesn’t let me make anything. I must to stop unity completely (since Task Manager) and re run the Unity application to continue with the development.

Someone have any idea of what’s happened with my Unity + Kinect? it’s only occuring with Kinect and the sensor.

Thanks a lot

I got the solution for this …

First, modify the file KinecInterop.cs replacing all the lines "C:\Program Files (x86)\Microsoft Research KinectSDK\MSRKINECTNUI.DLL" with "C:\Windows\System32\Kinect10.dll"

Second, create a struct like this in the same file:

public struct NuiStatusProc
{

}

Then, add the next lines in the NativeMethods method:

[DllImportAttribute(@"C:\Windows\System32\Kinect10.dll", EntryPoint = "NuiSetDeviceStatusCallback")]
public static extern void NuiSetDeviceStatusCallback(NuiStatusProc callback);

After that, in the KinectSensor.cs file, put this line before the catch block insde the Awake function:

NativeMethods.NuiSetDeviceStatusCallback(new NuiStatusProc());

I need to say that I installed the oficial kinect for windows SDK 1.5 before I modify the files mentioned above.

I hope I could to help to other developers.
ArturitoMys