Get Web Browser

I’m new to unreal but have some experience with working in java and c# with unity.

I’m creating a HTML project and I need to access the web browser information, it very similar of getting information about the browser in JavaScript using Navigator Object. I’d prefer this to be done in c++ but blueprint will do fine.

I don’t know if this is possible but if it is any help would be appreciated. I know there is some Web Browser documentation but no real good example if that is what I need to use to do this.

You want to display web browser to user or get data from website without displaying website?

niether I want the game from inside a browser be it chrome or firefox to be able to access the browser so i can get input from an Oculus.

So I figured out how to connect to the oculus and i used a cwrap function to send the orientation of the oculus to the compiled c++ script i have in my project. here is the cwrap function thats called in javascript

   Orient = Module.cwrap('orient_game', null, ['number'], ['number'], ['number'], ['number'])
   Orient(posState.orientation.y, posState.orientation.w, posState.orientation.z, posState.orientation.x);

This call function below in a character controller class

  extern "C"
  {
  #if PLATFORM_HTML5_BROWSER
      // callback from javascript. 
     void EMSCRIPTEN_KEEPALIVE orient_game(float x,float y,float z,float w)
     {
	     orient=FQuat(x, y, z,w);
     }
  #endif 
  }

Hi,

Can i use this the same way to talk from javascript to blueprint?
I’m a javascript developer and my friend UE4 developer (mostly blueprint stuff) and we want to make a site together.

Thanks

Yes but you would need to create a c++ class and create a child blueprint from that c++ class with separate blueprint callable functions returning the values you got from JavaScript. bear in mind function shown only returns variables from JavaScript to unreal, not unreal to JavaScript and can only return Integers, doubles and strings .

thanks,
Do you also know how to do the reverse? Call a javascript function from C++?
Maybe we can .stringify it first if .parse exists in C++ (to get the object from a string).

I do not want to display the web browser to the player using any interface; I want to get the URL from the preferred browser without displaying the website, if not directly, then from their history. Is this possible?

I’ve researched but have only seen assets replicating a browser and nodes launching a URL in the preferred browser.