How to build only specified assets into assetbundle in unity

I have searched through the few results pertaining to this particular question, but haven't found any results that work. A simple rundown of what i am looking for is to be able to make a single asset bundle of specified assets in order to be able to make an automated process for what the mod system i am making for the project i am working on.

there are two ways I can think of that would be able to do this;

1. build specified resources and assets into an assetbundle
2. build everything in a specified folder into an asset bundle

all of what i have been able to find regarding this either wouldn't allow me to make the automated process i need or builds the all of the assetbundles and they have to be defined manually before hand.

Any resources or suggestions to this issue would be greatly appreciated.

After the advent of the Asset Bundle Browser tool many things have become easy. Like you can get the dependency of the asset or you can manually drag and drop the asset in asset bundle.

• This is great. Didn't know about this. It says though that: "AssetBundle Manager is deprecated for Unity versions 2018.2 and higher. It is no longer available from the Asset Store [...] If you use Unity version 2018.2 or higher, see documentation for Addressable Assets."
– AJP
Jan 16 '20 at 9:51
• Well i am using it in unity 2019. Maybe anything else has introduced by unity for this. Jan 16 '20 at 10:22
• Yes you are right new replacement is Addressable Assets. Thanks for the info. Jan 16 '20 at 11:13
• If you happen to upgrade to Addressable Assets (and it does what you'd expect and what the OP asked) then please post back with that as an answer so I can reward it the bounty. :)
– AJP
Jan 16 '20 at 12:01

It looks like it is not possible to exclude individual assets apart from scripts. To exclude a script you can try following this advice: https://support.unity3d.com/hc/en-us/articles/208456906-Excluding-Scripts-and-Assets-from-builds

#if (UNITY_EDITOR)