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.
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
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.
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.