Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Fritsl on July 01, 2014, 05:38:50 AM

Title: Not possible to hover on Android in any way?
Post by: Fritsl on July 01, 2014, 05:38:50 AM
I’m doing an Android based ‘Joypad’ type of thing, and thought I could use NGUI, but it appears not - or did I miss something?
Here's the deal:
Check to the above, not a problem.

Problems:

Scenario 1:
Not possible, right??

Scenario 2:
Not possible either, right?


Because of the limitations in the event system:
void OnHover (bool isOver) – Sent out when the mouse hovers over the collider or moves away from it. Not sent on touch-based devices.

So this task / type of Joypad cannot be done with NGUI, right?

Thanks.
Title: Re: Not possible to hover on Android in any way?
Post by: ArenMook on July 02, 2014, 03:28:24 AM
Sure it can be. UIButton script has an option that lets you change what happens when it's dragged over. Highlighting is one of the options. NGUI sends out OnDragOver when you drag a touch over some object, and OnDragOut when you drag the touch away. Listen for those events in a script of yours, and you can do what you want.
Title: Re: Not possible to hover on Android in any way?
Post by: Fritsl on July 02, 2014, 03:49:58 AM
Thank you. But this page:

http://www.tasharen.com/?page_id=160
only describes the option for OnDragEvent.

And unfortunately the NGuiEventsToPlaymakerFsmEvents also only what's written in that page :/
Title: Re: Not possible to hover on Android in any way?
Post by: ArenMook on July 02, 2014, 05:58:43 AM
That page should be removed. It's extremely old. NGUI's documentation is linked from NGUI -> Help menu. It's also found here:

http://www.tasharen.com/forum/index.php?topic=6754.0

The page you're looking for that describes events is here:

http://www.tasharen.com/forum/index.php?topic=6711.0
Title: Re: Not possible to hover on Android in any way?
Post by: Fritsl on July 02, 2014, 06:06:03 AM
!