*I've been working on a project in unity3D using a kinect set-up. The set up is working perfectly. I'm using Unity3D 3.4 in combination with OpenNI, C# coding and of course a kinect.
The issue I'm facing is that the standard playermanager of openNI isn't sufficient as it doesn't recognize a player leaving without a timeout first. The matter is, I am trying to find out which event is triggered the moment a player is out of sight.
Normally when a player steps out of the frame, the software will start counting, and only after (in my case) 20-30 seconds it will release the actual player.
A long story short, I need to know what event is triggered the moment a player isn't visible any more. OR I would love a solution on how to know at any given time how many active players are in the field of view.
Thank you very much in advance!*
The solution:
private void ExitUserCallback(object sender, UserExitEventArgs e)
{
// Put whatever code you want active when player leaves field of view
Debug.Log("Exit user, userID=" + e.ID);
}