cesium-unity icon indicating copy to clipboard operation
cesium-unity copied to clipboard

Reinterop: Allow C++ implementation classes to access private fields / properties / methods of C# class

Open kring opened this issue 3 years ago • 0 comments

When using the [ReinteropNativeImplementation] attribute, the C++ and C# classes are conceptually one class, just with parts implemented in two different languages. To make that more seamless, it would be nice if the C++ code could access private members of the C# class. Currently the only way to do this is by declaring the private members "internal" instead.

kring avatar Feb 15 '23 05:02 kring