Hey,
I’m trying to make my own JNI calls from C++ instead of Unity.
(So I can get callbacks sent from Java to Unity, without using SendMessage)
The problem is, it seems that while the Java methods doing they’re calculations(after I called them from c++ and the java worked properly), the JNI call from c++ crush and with it all the unity app.
When I’m calling the same JNI call straight from Unity, all works fine.
I think that a little time after the c++ JNI call, the c++ is closed and with it the JNI environment.
Did someone try to do this?
Anyone has a solution?
Thanks