Esempio n. 1
0
        public ThreadedDriver(DeviceSettings settings)
        {
            // FIXME: Dangerous. We should do this only on Player.
            K4aExtensions.DisableSafeCopyNativeBuffers();

            _settings = settings;

            _captureThread = new Thread(CaptureThread);
            _captureThread.Start();
        }
Esempio n. 2
0
        public ThreadedDriver(DeviceSettings settings)
        {
            // FIXME: Dangerous. We should do this only on Player.
            K4aExtensions.DisableSafeCopyNativeBuffers();

            Settings = settings;

            this.provider = new BodyProvider();

            this.bodyObj = GameObject.Find("Kinect4AzureTracker"); //TODO: Remove later

            _captureThread = new Thread(CaptureThread);
            _captureThread.Start();
        }