0 votes

I would like to know if it is possible to make calls between C++ and Java - and how to do it ... It is for a Android/iOS module I'm making.

If you have any examples I would be happy to see them.

Cheers

asked Jan 15, 2017 in Engine by beocat (12 points)

This is not specific to Godot, you may find more examples on the web about how to do it. I think you have to use JNI (Java Native Interface) to make calls between the two, though I don't know if Godot has some helpers for that (maybe looking in https://github.com/godotengine/godot/tree/master/platform/android ?)

Thanks for your reply. I have only a superficial knowledge of JNI, so I just hoped somebody in the Godot community had some experience or some example code to share. Guess I'm going to learn something new...

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.