-
q: in Unity, I am calling from C# to a C++ library, which I'm writing as a wrapper around another library. That library gives me a std::string, and I want to return this from a function call to C# (as a string). What's the best way to do this? (I am not strong at C++)
-
(converting to a char * and returning that makes Unity crash: Unity(18127,0x7fffc50e93c0) malloc: *** error for object 0x7fffc4e7e660: pointer being freed was not allocated at (wrapper managed-to-native) object.__icall_wrapper_mono_marshal_free (intptr) <0x0008b>)
-
it's been a fun day