microsoft / HoloLensForCV

Sample code and documentation for using the Microsoft HoloLens for Computer Vision research
MIT License
472 stars 156 forks source link

How to use HoloLensForCV/Shared libraries from a C# script in Unity3D #108

Open argo-1 opened 5 years ago

argo-1 commented 5 years ago

I want to access and use the research mode sensors through C# scripts in my Unity3D project for the Hololens. I'd need the ability to use the helper classes in HoloLensForCV/Shared, which are .cpp

Is this possible? If yes, what would be the correct approach? I believe I might be compelled to create a DLL for the helper classes; I'm not sure how exactly to approach this and integrate it into my project.

doughtmw commented 4 years ago

Here is a sample that uses Unity IL2CPP Windows Runtime support to make use of the HoloLensForCV/Shared/HoloLensForCV project in Unity.