Bundle (put next to the bundle) resources get included next to the binary of your game. They are useful when you want something included with your project but also easy to edit. An example of a custom resource which you could use is putting your game’s localization files there instead of inside of the bundle, that way, assuming you have the glyphs enabled, anyone can translate your game. Another example of something you would want to include as a custom resource are FMOD audio banks, including them in bundle resources makes them take up more memory and be less efficient.
Custom resources get bundled inside of your game’s asset bundle. They are not easy to edit (or at least that used to be true). Generally if you don’t have a reason to have a custom asset be external you want it internal.
Normal assets, as in ones Defold knows about and are linked internally in your project, are automatically included in the bundle.
So custom bundle resources are used when you make the bundle and can modify the behaviour of the bundle. Is there any way to do a similar thing for HTML5 builds?
Thanks for your answers, @britzl and @Pkeod. Exactly what I was looking for.
Can you elaborate on this a bit please? From the doc britzl linked and the project settings doc it seems to be bundled resources, not common resources, that are exposed and able to be edited by third parties. Am I missing something?
I got them backwards in my first post. Have to remember that bundle resources get included next to the binary when bundling, is not put inside of the asset bundle.
Terrible naming if you ask me, I always have to look it up to understand which is which. And this thread shows up in the search.
I’d rename custom resources to “pack resources” - they are packed inside the binary and you have to use sys to load them from the pack.
And bundle resources to “copy resources” - they get copied and put along with your binary.
bundle resources - I don’t see a problem with this name. These resources will be included in the application bundle. The name is pretty clear to me.
custom resources - I don’t really like this name either. I’d prefer if it was called archive_resources as these resources are included inside the game resource archive. Or perhaps game resources. It would also be great if the name clearly indicate that the resources are loaded using resource.load().
I don’t think it is a feature that is very commonly used. It was added at the same time as bundle_resources, but I can’t find a particular comment about it in the commit.
Although I did find the design document for the feature! The bundle_exclude_resources was added as a way to avoid resource collisions when copying files to the bundle: