2017.11.7更新:
其实这个函数就是顾名思义,关键是理解AssetBundle, Asset, GameObject, 资源等之间的关系,参考此文即可:
http://www.cnblogs.com/88999660/archive/2013/03/15/2961663.html
---------------------------------羞耻的分割线-------------------------------------------
项目每60秒执行一次Resources.UnloadUnusedAssets。所以后续的GC不会一下子需要清理很多内存,所以游戏不会卡顿。
下面是查阅一下资料得到观点,应该有错漏,希望大神指正,谢谢。
1.
官方说法:An asset is deemed to be unused if it isn't reached after walking the whole game object hierarchy,
including script components. Static variables are also examined.
The script execution stack, however, is not examined so an asset referenced
only from within the script stack will be unloaded。
And, if necessary, loaded back in the ne