How to integrate Azure Kinect bodytracking in Unity

Lan Yang 25 Reputation points


I'm learning how to integrate Azure Kinect body tracking in Unity using the tutorial video from Angus Antley

I believe I have carefully followed every step to reproduce the implementation: clone the azure-kinect-sample, open the unity_bodytracking project with Unity 2019.2.6f1, make sure the Azure kinect device is running, install the "Microsoft.Azure.Kinect.BodyTracking.1.1.2" package, run the and then run the MoveLibraryFiles.bat and run the sample scene...

But I got the error msg: Catching exception for background thread result = K4A_result_failed (there was also a msg saying that the K4A was sucessfully opened). And the front light(streaming indicator) of my K4A just flashed once when I run the scene, instead of solid white.

Now I'm struggling to find the potential bug in the scripts. Can someone give me any hint about what may go wrong/ what am I missing here?

Thank you


Azure Kinect DK
Azure Kinect DK
A Microsoft developer kit and peripheral device with advanced artificial intelligence sensors for sophisticated computer vision and speech models.
276 questions
{count} votes

Accepted answer
  1. LeelaRajeshSayana-MSFT 12,111 Reputation points

    Hi @Lan Yang Greetings! Welcome to Microsoft Q&A forum. Thank you for posting this question here.

    I see that you are using the latest version of Azure body tracking SDK. Instead of the latest version, can you test with the versions of unity and the SDK such as Unity Version: 2019.1.2f1 and SDK Version: Azure Kinect SDK v1.4.1 / Azure Kinect Body Tracking SDK v1.0.1 to see if that helps. Please also make sure that you copy everything in the tools folder of the body tracker sdk into the root of the unity project (same place as the assets folder).

    I also found couple of old GitHub issues which got resolved by copying all the dlls from the SDK to the unity project. Here are the links to the issues

    Unity BodyTracking Sample catching exception for background thread result = K4A_RESULT_FAILED

    AzureKinectException: result = K4A_RESULT_FAILED

    Let me know if this helps.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful