How do I call Java code in unreal c++ using JNI?
Hello, fellow game creators. I'm working on this VR project in which a mobile device is used as a controller. Currently I'm testing JNI to call Java code on UE4. Only to fail, though... So I referred to these two links to figure out what I messed up.
But still, when I build and run it on the device, it crashes at the certain function. I can't seem to figure out what's wrong. I could really use some help.
Below is the code. (don't mind Korean letters)
If somebody knows something, please go ahead and leave a comment.
asked Jun 10 '16 at 11:50 AM in C++ Programming
UE4 used code obfuscation system called ProGuard on it's java layer, because of that functions name are modified and C++ references fails due to that name change. You need to add exception to your function in ProGuard configuration, you can find engine directory
Also you don't need to modify engine for this, you can do this in your own module using exacly same function that AndroidJNI class does.
Follow this question
Once you sign in you will be able to subscribe for any updates here