Welcome,
Guest
. Please
login
or
register
.
May 05, 2026, 07:20:24 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
OnHover() issue
« previous
next »
Print
Pages: [
1
]
Author
Topic: OnHover() issue (Read 2405 times)
Zenneth
Guest
OnHover() issue
«
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,
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: OnHover() issue
«
Reply #1 on:
July 31, 2012, 10:23:04 PM »
When you get OnHover(false), NGUITools.Destroy(yourGameObject).
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
OnHover() issue