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 check your url from html5 build

Is there a way for me to check what the current url is if someone launches a html5 build of my app? I'd like to get it as a string but if it can automatically get query parameters that'd be nice. Also this is a blueprint project but I'd be willing to add in c++ classes

Product Version: UE 4.17
Tags:
more ▼

asked Oct 17 '17 at 08:47 PM in Using UE4

avatar image

JackJack321
12 2 1 6

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

1 answer: sort voted first

The location.href JavaScript variable (https://developer.mozilla.org/en-US/docs/Web/API/Window/location) contains the URL of the current page.

Getting the data from JavaScript to C/C++ side does require a bit of information about the internals of Emscripten. Check out https://kripken.github.io/emscripten-site/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html.

There was an earlier forum thread about doing this kind of interaction, and how to get strings around from JS to C/C++, see https://answers.unrealengine.com/questions/539566/html5-content-control-browser-from-inside-ue4.html

more ▼

answered Oct 18 '17 at 05:34 PM

avatar image

juj
1.2k 15 4 17

avatar image JackJack321 Oct 24 '17 at 01:47 PM

This is what I was looking for, thanks.

(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