Using a pragma to disable AssetBundle errors

Is it possible to use a pragma to disable errors?

[In my particular example, I have similar AssetBundles in different locations (copied around - must be this way), and when loading them all in, I get an “AssetBundle already loaded” error, because Unity detects that what I try to load is already there although coming from a different file. would like to disable the error about the AssetBundle being already loaded. It does not do any harm, but it is annoying.

I tried

#pragma warning disable


#pragma warning restore

but the AssetBundle thing is an error, not a warning, and thus this does not work.

Has anybody any idea?

Try to unload all assets by


then reload if needed