Hello.
As part of A game I’m working on I’m trying to display the instructions as an html file using a webview,
I’m trying to do it that way because I find it easier to manage all the text and graphics in different languages this way.
I intend to use the same graphics that I use for some ingame content.
The text in the html shows correctly, however none of the images load.
I’ve tryed different formats (png, jpg) and locations (placing images inthe root or asubfolderor placing the htmland the images in a folder) to no avail
<img src=“img/instructions/instructions1.png”>
<img src="/img/instructions/instructions1.png">
<img src="…/img/instructions/instructions1.png">
<img src=“instructions1.png”>
<img src="/instructions1.png">
<img src="…/instructions1.png">
<img src=“instructions1.jpg”>
<img src="/instructions1.jpg">
<img src="…/instructions1.jpg">
I just get question marks indicating that the images weren’t loaded.
Is there a way to achieve this?
In the following thread someone states that this is possible using the full path for the files
system.ResourceDirectory … /filename.png
But I don’t know how to modify the html so the paths match that one.
Isn’t it possible to do this somehow using just the realtive path?
I intend to use this in both android and iOS in case that makes a difference.
Thanks!