Is it possible to include HTML5 JS files from the project or plugin?
I plan on creating an HTML5 plugin that injects
The current HTML5 JS build process combines JS templates in the build process using only the JS templates from the editor installation folder.
This process should be changed to also pick up any
That will allow projects and plugins to provide JS to be included in the build.
In the meantime, projects and plugins have to manually copy custom
This should make including
asked Feb 13 '17 at 06:45 PM in Packaging & Deployment
Both versions work in these sample projects.
HTML5 can be included from game source. https://github.com/tgraupmann/UE4HTML5SampleSource
HTML5 can be included from a plugin. https://github.com/tgraupmann/UE4HTML5SamplePlugin
Communication works both ways.
C++ can invoke JS functions.
C++ can invoke JS to set a callback.
JS can use the callback to invoke C++ code.
I created a Pull Request to add this feature.
Add support for including project and plugin JS
answered Feb 14 '17 at 06:32 PM
to close this thread: what you're looking for already exists within the Engine architecture. please take a look at:
you can use that as starting basis for your plugin.
answered Feb 15 '17 at 04:50 PM
It looks like the existing build script can include JS files.
Follow this question
Once you sign in you will be able to subscribe for any updates here