Data exchange between HTML5 build and JS
The official documentations says that Unreal uses emscripten to compile C++ code to JS, and emscripten itself seems to have ways to expose functions to JS and to call inline scripts:
However, I haven't found any info on how to use these functions in my Unreal C++ code. I am relatively new to the engine as well as C++ in general, so I don't feel confident enough to do any experiments myself yet, but maybe someone has already tried to do something similar?
Say, I would like to type a name to an HTML form and then display it in my game — how would I do that?
asked Aug 25 '17 at 08:32 AM in Everything Else
UE4 does feed all user C++ files through the Emscripten compiler, so it should be possible to just type in Emscripten-specific code. Something like:
answered Aug 25 '17 at 11:24 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here