x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to call Javascript from an HTML5 build

We have a UE4 scene where we need to send a command to the Google Speech API (it has to be Google because that's the only one that does arabic). So we need to be able to send a Javascript command from Unreal in an HTML5 build. it looks like UE4.11 supports Javascript commands, but not in HTML5 builds.

Is there a workaround to calling Javascript in HTML5?

Here is the only related question I could find, but I'm too new to know if this is the correct route to dig into: https://answers.unrealengine.com/questions/127267/how-to-access-data-variables-with-javascript.html

Product Version: UE 4.11
Tags:
more ▼

asked May 26 '16 at 04:07 PM in Everything Else

avatar image

Seth H
6 1 2 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

you can "inline" javascript code inside of C++

https://kripken.github.io/emscripten-site/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html

look under the "Call JavaScript functions from C/C++:" section

more ▼

answered May 31 '16 at 03:51 PM

avatar image

nick.shin STAFF
481 5 4 10

avatar image Seth H May 31 '16 at 04:07 PM

Thanks! We will give that a shot.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question