OnHover & OnUnhover doesn't work as I intended #282
Replies: 1 comment 1 reply
-
What you're describing does sound like the intended/expected behavior of hover/unhover from the implementation perspective. Hover/Unhover are intended to only map to pointer enter/exit events, respectively, when the pointer is None of the existing gesture events are expected (again, speaking from the current intended feature/implementation standpoint) to fire on All that said, I'm happy to recategorize this as a "Feature Request", since the ask certainly sounds like something Nova could support in the future with some new events! In the meantime, however, if you're actively looking to unblock yourself, one option available to you today would be leveraging the more raw One ask on our end for future reference, just so we better understand the use case when we get to implementing the new functionality, perhaps you could elaborate on what you're currently trying to accomplish as well as other scenarios you see these events being useful in place of the existing gesture events? We'd really appreciate the additional insight! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am writing to discuss a specific behavior observed in Unity's UI event system related to the Hover and Unhover events.
Currently, the Hover and Unhover events work well in environments that utilize a mouse input. However, in touch-input environments like mobile, these events are not functioning as anticipated. Presently, they are triggered when a touch finger is lifted from the screen. However, it would seem more natural for these events to be called when the touch finger, while being pressed, enters a UI
With Unity UI's event system, using IPointerEnterHandler and IPointerExitHandler, the event is called when the pointer enters a UI element from an already pressed state outside it. If the Hover and Unhover events are designed intentionally not to work in this situation, I would like to kindly request a new event to be created to cater to the scenario described above (when the touch is pressed, and the pointer enters a UI block).
This modification will provide more intuitive interactions for users on touch-enabled devices and align the functionality of the system with the expectations of developers like myself.
I greatly appreciate your attention to this matter, and I look forward to hearing your thoughts on this request.
Beta Was this translation helpful? Give feedback.
All reactions