Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Zenneth on July 31, 2012, 03:18:36 PM

Title: OnHover() issue
Post 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,
Title: Re: OnHover() issue
Post by: ArenMook on July 31, 2012, 10:23:04 PM
When you get OnHover(false), NGUITools.Destroy(yourGameObject).