- Home /
Question by
arinu3d · Mar 22, 2015 at 11:14 PM ·
optimizationmemoryresourcesresources.load
Do I need to manually call Resources.UnloadUnusedAssets?
This more of a general question but I really couldn't find an answer for it.
I have a game where I call Resources.load in many places. For example:
TextAsset textAsset = (TextAsset) Resources.Load("items.xml");
If Resources just returns an object then what is the need to do unloading? I mean when the function is finished the "textAsset" local variable is destroyed, isn't it?
So do i need to manually call Resources.UnloadUnusedAssets after each time I do Resources.load? If yes, will switching a scene do this automatically?
Comment
Your answer
Follow this Question
Related Questions
ResourceManager Class Referencing Assets? 1 Answer
Long load time for scene... Some optimization questions. 1 Answer
Low FPS after loading a scene 1 Answer
Lot of resource files 1 Answer