Welcome,
Guest
. Please
login
or
register
.
October 12, 2025, 04:35:05 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIProgressBar causes memory leak?
« previous
next »
Print
Pages: [
1
]
Author
Topic: UIProgressBar causes memory leak? (Read 2502 times)
arumons
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 7
UIProgressBar causes memory leak?
«
on:
November 11, 2014, 09:15:23 AM »
Hello.
I use several atlases on several scenes.
Today, I found that a atlas material not unloaded when change scene.
I read this post (
http://www.tasharen.com/forum/index.php?topic=3351.0
) and this post (
http://www.tasharen.com/forum/index.php?topic=7869.0
) but could not solve.
Finally, I detect that UIProgressBar have "static public UIProgressBar current" !!
This cause remain reference to material not use next scene...
Thanks for your reading.
-----
Environment
Unity 4.5.4f1
NGUI 3.7.2
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIProgressBar causes memory leak?
«
Reply #1 on:
November 12, 2014, 07:28:01 AM »
Nothing should be leaving UIProgressBar.current as a reference.
Check UIProgressBar class. Every time it's set to 'this' prior to EventDelegate.Execute, it's also set to 'null' right after.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIProgressBar causes memory leak?