# why is interaction: receive hardware input disabled when placing a widget in an actor blueprint

**URL:** <https://forums.unrealengine.com/t/why-is-interaction-receive-hardware-input-disabled-when-placing-a-widget-in-an-actor-blueprint/2137200>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [November 20, 2024, 9:36am UTC](https://forums.unrealengine.com/t/why-is-interaction-receive-hardware-input-disabled-when-placing-a-widget-in-an-actor-blueprint/2137200 "2024-11-20T09:36:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![barbrian0723](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@barbrian0723](https://forums.unrealengine.com/u/barbrian0723)\
**Post date:** [November 20, 2024, 9:36am UTC](https://forums.unrealengine.com/t/why-is-interaction-receive-hardware-input-disabled-when-placing-a-widget-in-an-actor-blueprint/2137200/1 "2024-11-20T09:36:26Z")

</div>

hi

why is interaction: receive hardware input disabled when placing a widget in an actor blueprint?

added a widget to an actor blueprint  
would love for it to still respond to mouse events  
it does not (or the mouse is consumed upstream)  
under the actor blueprint \>\> widget \>\> interaction \>\> receive hardware input, it is not selected and it is also disabled so that i can not select it

thanks

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 20, 2024, 9:39am UTC](https://forums.unrealengine.com/t/why-is-interaction-receive-hardware-input-disabled-when-placing-a-widget-in-an-actor-blueprint/2137200/2 "2024-11-20T09:39:03Z")

</div>

- you’re using Screen Mode - no need for hardware input enabled here, widgets already accept it
- no widget class was chosen for this component

> would love for it to still respond to mouse events  
> it does not (or the mouse is consumed upstream)

If the widget does not respond:

- something else consumed input (another widget, most likely)
- we’re in Game Only input mode (unlikely)
- the widget hierarchy `Visibility` settings prevent interaction

---

<div class="post-metadata">

**Author:** ![barbrian0723](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@barbrian0723](https://forums.unrealengine.com/u/barbrian0723)\
**Post date:** [November 20, 2024, 9:49am UTC](https://forums.unrealengine.com/t/why-is-interaction-receive-hardware-input-disabled-when-placing-a-widget-in-an-actor-blueprint/2137200/3 "2024-11-20T09:49:32Z")

</div>

of course

thanks

another thing now

if i enable [accept hardware input] for the widget in the actor blueprint, it consumes the mouse rather entirely  
not sure about mouse buttons as i have not tested that yet, and i can test and assign mouse button priority  
rather i am referring to the mouse cursor / movement  
i loose the mouse cursor and movement. and this is something i generally use for something else  
how would i prioritize the mouse in this case, particulalry the mouse cursor / movement

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 20, 2024, 9:51am UTC](https://forums.unrealengine.com/t/why-is-interaction-receive-hardware-input-disabled-when-placing-a-widget-in-an-actor-blueprint/2137200/4 "2024-11-20T09:51:51Z")

</div>

> [@barbrian0723](#):
>
> i loose the mouse cursor and movement

You may need to clarify what that means. The mouse cursor does not move while over the widget?

---

<div class="post-metadata">

**Author:** ![barbrian0723](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@barbrian0723](https://forums.unrealengine.com/u/barbrian0723)\
**Post date:** [November 20, 2024, 9:54am UTC](https://forums.unrealengine.com/t/why-is-interaction-receive-hardware-input-disabled-when-placing-a-widget-in-an-actor-blueprint/2137200/5 "2024-11-20T09:54:46Z")

</div>

as said, i use the mouse (cursor) for other things at the moment  
ie i actively process the mouse cursor  
i use the mouse to move an actor around

now that want to move the actor around with the mouse like i normally do i cant when the widget is active  
i presume it is consuming the mouse cursor

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 20, 2024, 9:57am UTC](https://forums.unrealengine.com/t/why-is-interaction-receive-hardware-input-disabled-when-placing-a-widget-in-an-actor-blueprint/2137200/6 "2024-11-20T09:57:08Z")

</div>

> [@barbrian0723](#):
>
> now that want to move the actor around with the mouse like i normally do

What does it mean, **specifically**? There is 100 ways to move an actor using mouse… What is **normally**?

• how are you handling input modes?  
• are you passing the focus back to the viewport after using the widget?  
• do we need to `Handle` something inside the widget and pass it to the Player Controller?  
• what is the actual step-by-step scenario?

More info needed.

---

<div class="post-metadata">

**Author:** ![barbrian0723](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@barbrian0723](https://forums.unrealengine.com/u/barbrian0723)\
**Post date:** [November 20, 2024, 10:10am UTC](https://forums.unrealengine.com/t/why-is-interaction-receive-hardware-input-disabled-when-placing-a-widget-in-an-actor-blueprint/2137200/7 "2024-11-20T10:10:48Z")

</div>

the actor in this case is a building  
the widget i am adding is for building data etc  
i use the mouse to allow the player to select a location in the world to place a new building

when i have the widget in the actor (building) blueprint and enable accept hardware input, i (the player) can no longer move a building around during new building placement  
so mouse cursor is gone or the mouse is handed to something else  
when i disable accept hardware input it works as intended again and new building placement is back to normal  
when i have the widget outside of the actor blueprint as a normal widget (that is externally set active and inactive) everything else is fine too  
need to figure out what happens to the mouse now and how to prioritize it

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 20, 2024, 10:13am UTC](https://forums.unrealengine.com/t/why-is-interaction-receive-hardware-input-disabled-when-placing-a-widget-in-an-actor-blueprint/2137200/8 "2024-11-20T10:13:39Z")

</div>

Is this what you’re trying to do:

> [@Getting Mouse Position During Drag and Drop UMG](https://forums.unrealengine.com/t/getting-mouse-position-during-drag-and-drop-umg/85760/15):
>
> Because it's undocumented, arcane knowledge obtainable only by those knowing a secret handshake. The below assumes you have overridden and using a Game Mode, a Player Controller and created a custom Drag & Drop Operation. in the Player Controller A Custom Event converts screen space to world space via deprojection and sets actor’s position: in the Custom Drag & Drop Operation blueprint Event Dragged spits out screen space coordinates and feeds them to an Event Dispatcher, we…

If you do not need **the dragged widget to also show while placing the building** , there’s no need for drag and drop. Just pass the focus back to the viewport as soon as you want to move the actor around. This can also be achieved by juggling Input Modes.

---

<div class="post-metadata">

**Author:** ![barbrian0723](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@barbrian0723](https://forums.unrealengine.com/u/barbrian0723)\
**Post date:** [November 20, 2024, 10:17am UTC](https://forums.unrealengine.com/t/why-is-interaction-receive-hardware-input-disabled-when-placing-a-widget-in-an-actor-blueprint/2137200/9 "2024-11-20T10:17:56Z")

</div>

i kind of did that already  
and it worked  
it is just not working anymore when i use a widget in the actor blueprint and enable harware input for it  
so either the 2 cant work together like this or i need to get it to work together by prioritizing it better

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 20, 2024, 10:19am UTC](https://forums.unrealengine.com/t/why-is-interaction-receive-hardware-input-disabled-when-placing-a-widget-in-an-actor-blueprint/2137200/10 "2024-11-20T10:19:49Z")

</div>

What are you doing **exactly** - we can’t read your mind. Please be **specific**. Do you:

- left click an icon (what is it? user widget? button?) in a world space widget component
- spawn an actor
- want to move the actor in the world using line trace

Am I even getting close? 😇

---

<div class="post-metadata">

**Author:** ![barbrian0723](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@barbrian0723](https://forums.unrealengine.com/u/barbrian0723)\
**Post date:** [November 20, 2024, 10:21am UTC](https://forums.unrealengine.com/t/why-is-interaction-receive-hardware-input-disabled-when-placing-a-widget-in-an-actor-blueprint/2137200/11 "2024-11-20T10:21:16Z")

</div>

> [@Everynone](#):
>
> Just pass the focus back to the viewport as soon as you want to move the actor around. This can also be achieved by juggling Input Modes.

yes generally this is what must be done now  
but you make it sound very easy  
and i still need to think how to do that  
also cant say i know exactly what you mean although i follow the thing principled

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 20, 2024, 10:29am UTC](https://forums.unrealengine.com/t/why-is-interaction-receive-hardware-input-disabled-when-placing-a-widget-in-an-actor-blueprint/2137200/12 "2024-11-20T10:29:54Z")

</div>

> [@barbrian0723](#):
>
> but you make it sound very easy

Without knowing the exact scenario, it’s impossible to suggest something directly.

- if you have a widget component with a native button that loves to steal focus, you can get back to the viewport immediately like so:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/1/7014631273cf64b3545266a10cabc02684773a8d.png)

Again, no clue what is the actual scenario we’re dealing with.

> i follow the thing principled

This is, sadly, too vague of an answer. Does it mean you do precisely what the bullet points outlined?

* * *

if you’re not sure about the technicalities, describe it from the end user’s perspective. What are we doing / what is happening?

---

<div class="post-metadata">

**Author:** ![barbrian0723](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@barbrian0723](https://forums.unrealengine.com/u/barbrian0723)\
**Post date:** [November 20, 2024, 10:32am UTC](https://forums.unrealengine.com/t/why-is-interaction-receive-hardware-input-disabled-when-placing-a-widget-in-an-actor-blueprint/2137200/13 "2024-11-20T10:32:41Z")

</div>

i allow the player to place a new building in the world  
the building is really the actor referred to here

the player uses the mouse to locate where the building must be placed

i use the player controller mouse cursor coordinates to move the mouse around in the world

this works “perfectly” fine (it works as is and like that)

i need to add a widget so that the player can interact with the building(s)

when the player clicks the building the widget must appear and the player can interact with the widget  
it has a slider and drop down list (combobox)

even this works perfectly fine as long as i have this particular widget independently / separately outside the actor blueprint

if i start to put the widget inside the actor blueprint (at some point it made sense but i am starting to wonder) and allow hardware input in order to avoid widget interaction i loose the ability to move the building around as i use to  
i am still trying to figure out why  
it might be that the mouse goes to the widget now foremost  
it might also be that i am enabling the widget too soon for practical purposes

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 20, 2024, 10:37am UTC](https://forums.unrealengine.com/t/why-is-interaction-receive-hardware-input-disabled-when-placing-a-widget-in-an-actor-blueprint/2137200/14 "2024-11-20T10:37:48Z")

</div>

> [@barbrian0723](#):
>
> if i start to put the widget inside the actor blueprint (at some point it made sense but i am starting to wonder) and allow hardware input in order to avoid widget interaction i loose the ability to move the building around as i use to

I don’t get it. If you pop-up a widget, you’re interacting with the widget, if you’re done with the widget, why not hide it?

- or you want to move a building **while** its 3d widget is showing?
- or do you want to do **both at the same time** - click **through** a widget to reach the viewport?

Is there any video of the behaviour you want to achieve?

---

<div class="post-metadata">

**Author:** ![barbrian0723](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@barbrian0723](https://forums.unrealengine.com/u/barbrian0723)\
**Post date:** [November 20, 2024, 10:44am UTC](https://forums.unrealengine.com/t/why-is-interaction-receive-hardware-input-disabled-when-placing-a-widget-in-an-actor-blueprint/2137200/15 "2024-11-20T10:44:14Z")

</div>

true

but maybe this is what i am not getting across

now, when i put the widget in the blueprint and enable hardware input, it does not work from the start (ie nothing works from start to finish)

i dont want to move the building when the widget pops  
the player generally only pops the widget when the building is placed and thus stationary

but, i cant even move a new building anymore, because enabling hardware input for the widget while it is in the blueprint disrupts the mouse

if i leave the widget outside the actor (building ) blueprint it / all works fine  
i can pop up the widget and interact with the widget and place my buildings

---

<div class="post-metadata">

**Author:** ![barbrian0723](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@barbrian0723](https://forums.unrealengine.com/u/barbrian0723)\
**Post date:** [November 20, 2024, 10:47am UTC](https://forums.unrealengine.com/t/why-is-interaction-receive-hardware-input-disabled-when-placing-a-widget-in-an-actor-blueprint/2137200/16 "2024-11-20T10:47:08Z")

</div>

the mouse cursor still moves when i try to place a new building now  
but the building itself no longer follows the mouse  
and the buttons on the game menu widget still work  
i would be able to locate the point of departure in the blueprint to understand why the building is stopping moving

---

<div class="post-metadata">

**Author:** ![barbrian0723](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@barbrian0723](https://forums.unrealengine.com/u/barbrian0723)\
**Post date:** [November 20, 2024, 10:57am UTC](https://forums.unrealengine.com/t/why-is-interaction-receive-hardware-input-disabled-when-placing-a-widget-in-an-actor-blueprint/2137200/17 "2024-11-20T10:57:24Z")

</div>

when i enable hardware input for the widget when it is inside the actor blueprint i loose a valid mouse input:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/3/db364b3c74cf924524b46f07382b826a74a4b86c.png)

get mouse position no longer returns true / valid anymore

building will no longer move as there is no location to move to

i take it the mouse is registered as hovering over / inside the widget now

---

<div class="post-metadata">

**Author:** ![barbrian0723](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@barbrian0723](https://forums.unrealengine.com/u/barbrian0723)\
**Post date:** [November 20, 2024, 11:10am UTC](https://forums.unrealengine.com/t/why-is-interaction-receive-hardware-input-disabled-when-placing-a-widget-in-an-actor-blueprint/2137200/18 "2024-11-20T11:10:42Z")

</div>

if a widget is set as hidden, will it still be able to have focus (such that the engine would see it as having the mouse cursor, instead of the game world)  
how can you at times set the priority of the game world higher than a widget i.t.o the mouse  
how do you know what has focus at a time and (how) can you change it

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 20, 2024, 11:27am UTC](https://forums.unrealengine.com/t/why-is-interaction-receive-hardware-input-disabled-when-placing-a-widget-in-an-actor-blueprint/2137200/19 "2024-11-20T11:27:57Z")

</div>

> [@barbrian0723](#):
>
> how do you know what has focus at a time

[Widget Reflector.](https://dev.epicgames.com/documentation/en-us/unreal-engine/using-the-slate-widget-reflector-in-unreal-engine?application_version=5.5)

> [@Adding child widgets, only some elements show up?](https://forums.unrealengine.com/t/adding-child-widgets-only-some-elements-show-up/500986/4):
>
> A double-check list: text is Visible text is not fully transparent no funky business in Init / (Pre)Construct search for the Text Block references in all blueprints (the binoculars) and see if another blueprint fiddles with it If the abovementioned sanity check is satisfactory, use the [Widget Reflector](https://docs.unrealengine.com/4.26/en-US/ProgrammingAndScripting/Slate/WidgetReflector/) and see what is happening to the misbehaving Text Block: A crash course on Reflector:

> and (how) can you change it

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/3/a/23af5c2110861ab2efbac024dfe4a4baa6189507.png)

or:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/8/fe8f9cb89e9a774701dabf5254dfd403fe28512c.png)

---

<div class="post-metadata">

**Author:** ![barbrian0723](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@barbrian0723](https://forums.unrealengine.com/u/barbrian0723)\
**Post date:** [November 20, 2024, 11:28am UTC](https://forums.unrealengine.com/t/why-is-interaction-receive-hardware-input-disabled-when-placing-a-widget-in-an-actor-blueprint/2137200/20 "2024-11-20T11:28:55Z")

</div>

thanks let me see

[Next page](https://forums.unrealengine.com/t/why-is-interaction-receive-hardware-input-disabled-when-placing-a-widget-in-an-actor-blueprint/2137200.md?page=2)
