How to exclude specific assets from an Addressable build?

Scenario:

  • I have a big folder of data that belongs to a specific scene (a menu / UI screen in this case)
  • I make the UI scene itself addressable, and its data folder (the root folder, so all sub assets also become addressable).
  • Among the hundreds of assets in this data folder, there’s a handful of stuff that should not be packed into an asset bundle. Specifically, this is a .tpsheet file used by TexturePacker.

How can I exclude this file/asset from the asset bundle being built by the addressable data folder?

Here’s what I tried so far:

  • Go to the Addressable Settings asset and check the box for “Ignore Invalid/Unsupported Files In Build”. This seems to work around my issue, but feels vaguely dangerous, what if it excludes some other stuff that happens to be broken and is meant to be fixed, not silently excluded? I would need to know about those things.

  • Instead of making just the parent folder addressable, make each individual file addressable and just don’t check that particular .tpsheet file. Possible but incredibly tedious and not scalable.

What else can I try? I feel like the ideal solution would be a global file extension filter, i.e. specify “.tpsheet” somewhere in the addressables setting asset and these will always be excluded from all addressable asset bundle builds, but this does not exist.

Any other suggestion?
Thanks

I think using the “Ignore Invalid/Unsupported Files In Build” is probably a valid solution in your case. However, if you want to do something more custom so you can have fine grain control over your build process, you could check out the Custom Build Script sample (you can download it through Package Manager). You could make a custom build script such that you were able to exclude whatever you want from a build more explicitly.

Hope that helps!