Data Types C# -> C++, Managed DLL import
I am currently working on using a Managed .NET dll being imported within my Unreal Project.
Everything is going fine though I am having some difficulties with return types.
So the signature of the function I'm calling from my DLL looks like this:
I'm properly getting the function within unity though I'm having trouble figuring out the type that UnrealEngine can work with.
Things I've tried:
I've also attempted to change my signature to:
though admittedly I am unfamiliar with all of C#'s unsafe rules so I'm probably marshaling the array into byte* incorrectly.
If this made sense to you, or you've been in a similar situation and have a solution, please help me out here!
I've been smashing my head against this for a few hours and can't for the life of me figure it out. (at least without some sleep ;) )
Thanks for any and all help, -Paul
Follow this question
Once you sign in you will be able to subscribe for any updates here