Accessing Bundle Resources from the editor (SOLVED)

In my HTML5 project I am loading a number of external .png files. I’m currently making the files available in the editor by also including them as a “Custom Resource” like this:

57

This is not ideal, for obvious reasons. Is there a way of accessing the bundled files when testing in the editor without adding them as a custom resource?

You can probably access them from anywhere on your computer by the full path.

1 Like

Yes, that worked. Then I tried a relative path, and that worked too!

local file_path = "bundle_resources/web/" .. filename
local file = io.open(file_path, "rb")
data = file:read("*all")
file:close()