Exclude addressable assets from app build.

Hi everyone,

Simple but potent question. I have everything set up to load addressables remotely and everything works fine, but I don’t want to include the original assets (marked as addressables) in the app build (not talking about addressables build) in order to decrease the build file size.

“Deleting” the assets solves the problem and as the system is configured to load the assets remotely, still works fine. But if you need to update the bundle, it’s a nightmare (importm assets again, etc).

Somebody told me that Unity automatically excludes addressables from addressables groups configured as remote but I can’t assure if that’s true.

Is that true? There is some setting I need to specifically mark? Or if it’s not true, what is the right way to do it?

Thanks in advance,

David

Assets are only included in the build if they are dependencies of any of your scenes or anything in Resources. If you are seeing things that are addressable in your builds, it means something is directly referencing them.

Use the analyze tool to see what will be duplicated in the build.

Is there a way to do this? I’ve been searching all afternoon and haven’t found anything. Seems like it should be a basic feature.

I assume you could do a hard code of the file path in the addressable file but hoping there is a simpler way.
Much thanks,
Nathan