How do the Unity Building a Standalone Executable with Azure Kinect Body Tracking?

JasonLin 1 Reputation point
2022-11-19T10:11:08.307+00:00

The unity project has been success run with Azure Kinect Body Tracking under the editor environment. And I build the Standalone Executable for window. But when I try to open the .exe, the log always get the error : WindowsPlayer "My PC" catching exception for background thread result = K4A_WAIT_RESULT_FAILED !

I has been used many way to try to find the solution, but nothing can work. Could someone have suggest? Thanks!

Following is the way which I has been tried.

Unity Sample READ :
https://github.com/microsoft/Azure-Kinect-Samples/blob/master/body-tracking-samples/sample_unity_bodytracking/README.md

Check dependence .dll :
https://video2.skills-academy.com/en-us/azure/kinect-dk/body-sdk-setup#required-dlls-for-onnx-runtime-execution-environments

Other same Question :
https://video2.skills-academy.com/en-us/answers/questions/862064/index.html

My Test Environment :
Azure Kinect Body Tracking SDK v1.1.2
Azure Kinect SDK v1.4.1

(Installed to default locations)

Processor Intel(R) Core(TM) i7-10700F CPU @ 2.90GHz 2.90 GHz
Installed RAM 32..0 GB
System type 64-bit operating system, x64-based processor

Edition Windows 10 Enterprise

NVIDIA GeForce RTX 3060
Driver version 526.98
CUDA : 11.8

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.
294 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JasonLin 1 Reputation point
    2022-11-19T17:12:00.897+00:00

    I success to solve the question and share the way for someone ,who as confuse as me how to Build a Standalone Executable with Azure Kinect Body Tracking in unity.
    It is easy to do, Just add the tools under the root directory that contains the .exe of result of Build, The tools is same with that you add in the root directory that contains the Assets folder of Unity Project when setting the body tracking, but only root folder not plugins folder.

    Tools detail can take reference from step 3 in this issue : https://github.com/microsoft/Azure-Kinect-Samples/tree/master/body-tracking-samples/sample_unity_bodytracking


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.