- Home /
Question by
missyouangeled · Jan 13, 2017 at 11:47 AM ·
memory
After AssetBundle.Unload(true) the memory is not clear.
using UnityEngine;
using System.Collections;
public class Test2 : MonoBehaviour {
void OnEnable () {
for(int i = 0;i < 20;i++)
Test1();
}
public void Test1 () {
AssetBundle Temp;
Temp = AssetBundle.LoadFromFile(Application.dataPath + "/AssetBundles/AssetBundles");
Temp.Unload(true);
Temp = null;
Resources.UnloadUnusedAssets();
System.GC.Collect();
}
}
link text I run this CS code. Why the memory of unity is increasing along. I want to know why it is unuse for System.GC.Collect();
img.zip
(217.2 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612104718im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Editor crash after editing in a better computer 0 Answers
Unity iOS memory usage 0 Answers
Unity deleting scene when out of memory 0 Answers
How to clear UnityEditor memory? 0 Answers
Memory usage in xcode does not equal to the number in unity profiler 0 Answers