I have an app that looks like a native app with a specific design, each page has a header but when I open a web page it break the illusion because suddenly the header is different. The previous page looked like this:
So how can I design the web browser header in unity to look like this:
Or at the very least if I design the web page like that and hide the web browser header then what code should I use in html / php to lose the browser and go back to unity because in the documentation there is c# code to close the browser but only after a set time and Iphone doesn’t have a back button so I need some sort of Header back button… but not the default one
This topic was modified 5 years, 9 months ago by Piotr.
Hello, I see the js communication and I think I have gotten a grasp on the unity side of it, having it listen for the call and what to do when certain messages are received but I do not understand how to send the js message from the web site side, is code for the page that opens in the sample scene available
I have created my own top and bottom bars due to handle close, navigate back and navigate forward functionalities. Both bars are working properly in terms of functionality, but only when I use text for the buttons. My problem is when I try to use background images for that buttons due to find the path for loading those images.
So my question is, is it possible to load the images for the buttons’ backgrounds from any device folder?
buttonExit.style.backgroundImage = ‘url(‘Cross.png’)’;
It works fine when I have the image in the same folder as the html code, but using your plugin I really don’t know how to load the image cause I’m not sure about the path to use.