I’ve been brought onto a project with some specific goals: it is a game to be packaged for HTML5 deployment and the game needs to be able to talk to the chrome API for certain calls (Specifically, for the webkitSpeechRecognition object).
In my original investigation on how to do this, it looked like emscripten was capable of the task (link here).
The project is a blueprints project, and so my thought was to make a set of functions in c++ that make the required calls to chrome and then call those from blueprints. However, even though the UE4 project apparently packages with emscripten, it won’t let me compile the c++ code in the project because it doesn’t “recognize” the emscripten macros.
Since it can’t compile, I can’t make the blueprints side recognize the function that I’ve written.
Is there:
-
Any way to make unreal compile my emscripten code?
-
Any way to compile without the unreal engine? (I tried compiling from the emscripten
terminal and it couldn’t find engine.h) -
Any other way to call javascript from inside the game?
I will be greatly appreciative to anyone who can help with this. I can’t be the only one who’s trying to do this. Thanks!