|
I can use Resources.Load(path) to load a single resource file. How can I unload it?
Should I just use UnloadUnusedAssets anyway?
(comments are locked)
|
|
A new method has been added in Unity 3.5.2 that should do what you are after: Great! Didn't know that, thanks
Jul 17 '12 at 01:25 PM
Izitmee
Except it complains that it can't be used on a GameObject :(
Oct 26 '12 at 04:34 AM
yoyo
(comments are locked)
|
|
Thanks for the link. The thread suggests using Destroy to unload assets ("You need to Destroy() assets and remove all references to them in order to clean the memory after loading them."), but as I mentioned above this technique doesn't work. I suspect it would be the right approach if I was procedurally generating the assets, but for my use case it doesn't work.
Apr 27 '10 at 02:06 AM
yoyo
(comments are locked)
|

Resources.UnloadUnusedAssets seems to be a frame rate killer, so I'd like to avoid if I can.
And yes, I believe AssetBundles would solve the problem, but I'm using the free edition of Unity, so AssetBundles are not available to me.