1
NGUI 3 Support / UIAtlas not unloaded after LoadLevel
« on: August 15, 2014, 05:18:11 PM »
NGUI Version: 3.6.9
Unity version: 4.5.0f6 Pro
Hi Guys, we've been having memory leak problems with our project lately so we've decided to take a closer look at the Profiler. That's when we noticed that some UIAtlas are not unloaded. We've found this post: http://www.tasharen.com/forum/index.php?topic=9964.msg46832#msg46832 and decided to update NGUI in the hopes that this fix was added. It was but it didn't completely fixed our problem.
It would remove the UIAtlas only if the UIRoot was not a prefab. Since we instantiate the UIRoot at the loading of the scene, all our UI is made up of prefabs.
I thought it could be our project so I've re-created a new project from scratch using the NGUI example textures. This new project loop through 3 scenes and behaves the exact same way as our project. If you save the UIRoot as a prefab (blue) the UIAtlas is not unloaded. If the UIRoot prefab is gray, it gets removed at loading.
ArenMook: I have a testProject if you want it. PM me and I'll forward a download link.
Unity version: 4.5.0f6 Pro
Hi Guys, we've been having memory leak problems with our project lately so we've decided to take a closer look at the Profiler. That's when we noticed that some UIAtlas are not unloaded. We've found this post: http://www.tasharen.com/forum/index.php?topic=9964.msg46832#msg46832 and decided to update NGUI in the hopes that this fix was added. It was but it didn't completely fixed our problem.
It would remove the UIAtlas only if the UIRoot was not a prefab. Since we instantiate the UIRoot at the loading of the scene, all our UI is made up of prefabs.
I thought it could be our project so I've re-created a new project from scratch using the NGUI example textures. This new project loop through 3 scenes and behaves the exact same way as our project. If you save the UIRoot as a prefab (blue) the UIAtlas is not unloaded. If the UIRoot prefab is gray, it gets removed at loading.
ArenMook: I have a testProject if you want it. PM me and I'll forward a download link.