-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package the project into DLL libraries #40
Comments
Have you tried using
|
First of all, thank you for your reply. I still cannot detect the method in DLL library according to the method you provided.Do you also try to use sensor data from Hololens2ForCV in Unity for your own projects?Can you tell me the complete process?From publishing projects to Hololens and how to build DLL library files. |
Hi @RenSiyao , The complete process would be a bit to much but here are the general steps:
Target platform has to be ARM64.
Here you have to be careful how you pass data from C++ to C#. I solved it with an 'unsafe' block but marshalling can be a way too.
I hope that helps a little. Otherwise just feel free to ask. |
@RenSiyao I'm trying to get the StartRecording() and StopRecording() functions incorporated as well but can't get the winrt::Windows library in my DLL. How did you manage to do that? Did you use a Windows Runtime Component format? Thanks, it would help me a lot |
|
Your DLL built succesfully right? Did you look at #31 ? I had the same problem and solved it. Did you put your DLL in your Assets/Plugins folder? |
The DLL library I successfully built is a case study in the depth camera project, and my DLL library cannot be used on the journey. |
I'll look into it and let you know if I can get it to work! |
You can only get one depth sensor data for the DLL library I provided to you. I cannot solve your function problem of StartRecording () and StopRecording () for you. |
@RenSiyao |
How to put the project into Unity after packaging the DLL library。
Who can tell me the complete process of packaging a project into a DLL library and how to call this DLL inside Unity?
I used the call method shown in the figure below but got an error in Unity.Who can help me?
The text was updated successfully, but these errors were encountered: