Support => NGUI 3 Support => Topic started by: stevej on December 30, 2015, 04:16:00 PM
Title: UITooltip.cs Disappears Very Quickly
Post by: stevej on December 30, 2015, 04:16:00 PM
I've been using the UITooltip example for the tooltips in my game and it works nicely. One issue I have with it is that the tooltips (once shown) disappear really quickly - like maybe 1 second later. I can't for the life of me track down why this happens. Is anyone able to assist?
Title: Re: UITooltip.cs Disappears Very Quickly
Post by: ArenMook on January 01, 2016, 07:04:38 PM
Put a Debug.Log in UITooltip.Hide and find out.
Title: Re: UITooltip.cs Disappears Very Quickly
Post by: stevej on January 03, 2016, 05:02:15 PM
Yep - I've tried that. i.e. putting a Debug.Log just before every occasion where I call UITooltip.Hide(). It's not any of those.
It's like the tooltip itself has an automatic Hide() after 1 second. Obviously it doesn't. So something else is causing it.
Maybe the refreshing of the Panel or something else causes it?
Title: Re: UITooltip.cs Disappears Very Quickly
Post by: stevej on January 03, 2016, 05:16:43 PM
Okay - narrowed it down further. The problem only seems to happen on my "sub-windows" - not on my main interface. All those windows are draggable, so I'm wondering if maybe that's the problem? Some sort of refresh that's happening on those windows which also clears the Tooltip?
See demo:
http://www.stevejarman.com/temp/ngui_tooltip.mp4
Title: Re: UITooltip.cs Disappears Very Quickly
Post by: ArenMook on January 05, 2016, 06:54:32 AM
Do you show the tooltip yourself as soon as you hover over an object? Seems to me that 1 second delay is NGUI's native OnTooltip code firing.
Title: Re: UITooltip.cs Disappears Very Quickly
Post by: stevej on January 11, 2016, 11:23:33 PM
Yes - I'm showing the tooltips when entering hover and removing them on hover out. Can I maybe disable that "native OnTooltip code"?
Title: Re: UITooltip.cs Disappears Very Quickly
Post by: devomage on January 12, 2016, 01:23:07 AM