Welcome,
Guest
. Please
login
or
register
.
June 15, 2026, 01:03:16 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Does the meterials of UITexture destroyed by itself when gameObject destroyed?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Does the meterials of UITexture destroyed by itself when gameObject destroyed? (Read 3385 times)
pengyingh
Guest
Does the meterials of UITexture destroyed by itself when gameObject destroyed?
«
on:
April 12, 2013, 07:18:15 AM »
I remembered the meterials need to be destroyed separately,or will cause memory leak,but I haven‘t tested it.
Logged
quangpham
Guest
Re: Does the meterials of UITexture destroyed by itself when gameObject destroyed?
«
Reply #1 on:
June 10, 2013, 10:11:42 AM »
I got the same problem. Memory leak because materials don't be destroyed when destroyed game object. Is there anyone come up with any ideas to solve it?
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Does the meterials of UITexture destroyed by itself when gameObject destroyed?
«
Reply #2 on:
June 10, 2013, 02:31:34 PM »
UITexture has this:
void
OnDestroy
(
)
{
NGUITools
.
Destroy
(
mDynamicMat
)
;
}
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Does the meterials of UITexture destroyed by itself when gameObject destroyed?