Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Zenneth on July 31, 2012, 03:18:36 PM
-
Hi, I wanted to instantiate a GameObject when the mouse entered the Sprite, then Destroy it when exit.
I got the instantiate part covered, but couldn't figure out the Destroy when leave part.
Could anyone help me on this?
Regards,
-
When you get OnHover(false), NGUITools.Destroy(yourGameObject).