Resources.unloadunusedassets() Crash?

Hi,

I am loading lots of Texture2D (more than 1000), and I am going too height in memory.

In the Editor, I can use Resources.unloadunusedassets() or EditorUtility.UnloadUnusedAssets () so that the memory remains stable, and everything works fine.

However, EditorUtility.UnloadUnusedAssets () is not possible in standalone, and Resources.unloadunusedassets() just crashes my app…
I tried to use :

Destroy(object);
Resources.unloadasset(object);
Resources.unloadunusedassets()

but it freezes anyway (Application not responding).

I a m trying it on Mac standalone. Any idea?

Cheers,
Nicolas

We just found something that fixed the issue for us.

See the related answer I wrote here.