How to use Resources.UnloadAsset

Hey guys,

I have a quick (and hopefully easy) question today. I want to Unload an audio clip that I’m streaming from the disk. The only problem is, I don’t know what it is I’m supposed to be unloading! I can’t reference the location of the audio clip on the disk (that wouldn’t make any since), and I don’t want to unload the AudioSource.

So, if anybody know what I need to do, I’ll be very grateful! - Gibson

I guess you can only Unload loaded assets. Since you are streaming from disc, there’s nothing ever loaded for you to unload. That’s my guess. Maybe set your music assets to Compressed in memory? Resource.Load it and then Unload() should work.