cpp_client_telemetry
cpp_client_telemetry copied to clipboard
1DS C++ SDK bindings for Unity C# layer
C# projection layer - old work item #4
It took us a few years to realize that we finally need 1DS C++ SDK bindings for Unity C# code in Microsoft Mesh.
Implementation should work well under the following environments:
- Unity WebAssembly IL2CPP (Unity transpiles C# to C++ to WebAssembly)
- Unity Editor with Mono 2.x
- Unity based on NETStandard 2.x+
List of changes:
- mod mat.h to pack structure. This enables predictable C API interop between C# layer and C.
- example that shows how to P/Invoke from .NET to shared 1DS library.
Unity wrapper will be maintained elsewhere outside of this repo.
In case the code under wrappers/netcore is to demonstrate calling capi from C# code using P/Invoke, should we move this code under example directory. The capi related code changes look good in general, though I am not expert on P/Invoke part of example code.
should we move this code under
exampledirectory?
I can split it into two parts:
EventNativeAPI.cs- belongs inwrappersdir. This is nearly identical to what we use in the product.Program.cs- belongs inexamplesdir.
I can split it into two parts:
Yes, that will make sense. Thanks.
Sorry for delay. We integrated it on our end, so I put it on a back-burner. I'll get back to this.