Dynamically unloading a sound that hasn't finished loading yet. What?

One of our users (of Master Audio) reported the following warning. How / when is this logged so we can figure out how to avoid the circumstances that log it?

“Dynamically unloading a sound that hasn’t finished loading yet. If you see this message a lot, some scripts may be doing too many dynamic load/unload operations which will negatively affect performance.”

Note that they have turned on “load in background” for the audio clip and turned off “preload audio data”.

Bump. Probably only a Unity dev knows the answer…

I saw this warning when I tried to unload an asset bundle, which had an attached AudioClip with “Load in Background” enabled. It looks like possibly the asset bundle was unloaded before the AudioClip finished loading, so attempting to play back the AudioClip results in no sound. Then when going from Play mode to Editor mode, this warning appears in the console.

Thanks, I’ll try to handle that.