Kinect.KinectManager.GetDisplayedBodyIndex C# (CSharp) Method

GetDisplayedBodyIndex() public method

Gets the body index [0-5], if there is single body selected to be displayed on the user map, or -1 if all bodies are displayed.
public GetDisplayedBodyIndex ( ) : int
return int
        public int GetDisplayedBodyIndex()
        {
            if (sensorData != null)
            {
                return sensorData.selectedBodyIndex != 255 ? sensorData.selectedBodyIndex : -1;
            }

            return -1;
        }
KinectManager