Bundling non-atlas images (SOLVED)

OK, so I’ve very new and here is what I’ve been doing:

I’ve been creating some gui nodes dynamically with gui.new_box_node(), and getting their textures from a folder of just png files (that are not stored in an atlas file). And it works great locally on the development machine, when I choose build and launch . But when I bundle the application (android), the gui nodes are no longer being rendered. A little investigation leads me to believe that the png folder and files are not being bundled into the apk. Is there any way to force them to be included (or is my diagnosis inaccurate)? Or am I just barking up the wrong tree entirely by trying to do this without an atlas file? Thanks!

Have a look here, specifically the “bundle_resources” setting:

I think that’s where you’d need to list your png files, so they get bundled up during the build process.

3 Likes

ah yes, this looks promising. Thanks!

Using custom resources and sys.load_resource() is the recommended way to solve your problem.

3 Likes

That is what I ended up going with, but @ericsroy comment got me headed in the right general direction, thanks guys!