# When is ScriptableSingleClickTool.OnHoverHitTest called?

**URL:** <https://forums.unrealengine.com/t/when-is-scriptablesingleclicktool-onhoverhittest-called/2122668>\
**Category:** Pipeline & Plugins\
**Tags:** unreal-engine, question\
**Created:** [November 14, 2024, 3:40pm UTC](https://forums.unrealengine.com/t/when-is-scriptablesingleclicktool-onhoverhittest-called/2122668 "2024-11-14T15:40:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antifinidictor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Antifinidictor](https://forums.unrealengine.com/u/Antifinidictor)\
**Post date:** [November 14, 2024, 3:40pm UTC](https://forums.unrealengine.com/t/when-is-scriptablesingleclicktool-onhoverhittest-called/2122668/1 "2024-11-14T15:40:39Z")

</div>

I tried overriding OnHoverHitTest in my scriptable tool, but it never gets called. How is the event triggered?

Full context:  
I’m creating a scriptable tool to paint objects on a variable grid in my scene. I’ve overridden TestifHitByClick to respond to mouse events & spawn in the object. I’d like to draw a box on the grid cell containing the mouse whenever the mouse moves, but I haven’t found a way to get the input device ray or something similar on each tick or mouse movement in the editor.
