Reply To: Custom Top Bar

Welcome! Forums Unity Plugins In-App Web Browser Custom Top Bar Reply To: Custom Top Bar

#741
rulewan
Participant

Hi Piotr,
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?
Right now, I have the images stored into Persistent Data Folder but cannot get them when executing javascript code:
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.
Regards,