-
Is there/will there be a way to fire an event on the frame an object becomes hovered? At the moment, the only way I can see to achieve this is to store the hover state of an object, then check it on every onHover tick to see if it is false. An inbuilt method would be nice. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can use onHover second function obj.onHover(
// when hover
() => {
obj.use(area());
},
// when no hover
() => {
obj.unuse(area())
}
); |
Beta Was this translation helpful? Give feedback.
-
Changed the functionality of You still can use |
Beta Was this translation helpful? Give feedback.
Changed the functionality of
onHover
to runs once when object is hovered andonHoverEnd
to runs once when a object is unhoveredYou still can use
onHoverUpdate()
for old behavior