# I want to click on an actor on the level with the widget displayed.

**URL:** <https://forums.unrealengine.com/t/i-want-to-click-on-an-actor-on-the-level-with-the-widget-displayed/2169207>\
**Category:** UI\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [December 4, 2024, 5:14am UTC](https://forums.unrealengine.com/t/i-want-to-click-on-an-actor-on-the-level-with-the-widget-displayed/2169207 "2024-12-04T05:14:55Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarotarounchi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tarotarounchi](https://forums.unrealengine.com/u/tarotarounchi)\
**Post date:** [December 4, 2024, 5:14am UTC](https://forums.unrealengine.com/t/i-want-to-click-on-an-actor-on-the-level-with-the-widget-displayed/2169207/1 "2024-12-04T05:14:55Z")

</div>

I want to start the process by clicking on an actor on the level with the widget always displayed, but I can’t click on the actor because the widget takes the decision.

The widget configuration contains child widgets in the campus panel.  
I would like to make click judgments on actors even if they click on places other than the various buttons.  
（See image below）

Is there any way to interfere with the actor other than hiding the widget?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/d/2/5d23119de11c3def710815a3b917c15b4046ccce.png)

---

<div class="post-metadata">

**Author:** ![Arodi007](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arodi007/32/1022275_2.png) [@Arodi007](https://forums.unrealengine.com/u/Arodi007)\
**Post date:** [December 4, 2024, 7:06am UTC](https://forums.unrealengine.com/t/i-want-to-click-on-an-actor-on-the-level-with-the-widget-displayed/2169207/2 "2024-12-04T07:06:20Z")

</div>

If your `ButtonBox` or `ClickIcon` is taking the whole screen, you can set their `visibility` to Not-Hit

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

---

<div class="post-metadata">

**Author:** ![tarotarounchi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tarotarounchi](https://forums.unrealengine.com/u/tarotarounchi)\
**Post date:** [December 4, 2024, 7:34am UTC](https://forums.unrealengine.com/t/i-want-to-click-on-an-actor-on-the-level-with-the-widget-displayed/2169207/3 "2024-12-04T07:34:59Z")

</div>

Thanks for the reply!

You are right, I have all elements set to Not Hit - Testable (SelfOnly) except for the 3 buttons, but I can’t click on the actors in the level.

I checked with the widget reflector and it seems that this widget is covering the screen.

I wish I could access the actor by clicking on all but the three buttons, in the second image: …

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/e/5/6e5bd7e5ae3b1e73f1986665ae223394a140dded.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/c/d/4cdeaa239f9745f43696b5649f21bc9feace2aca.jpeg)

---

<div class="post-metadata">

**Author:** ![Arodi007](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arodi007/32/1022275_2.png) [@Arodi007](https://forums.unrealengine.com/u/Arodi007)\
**Post date:** [December 4, 2024, 7:48am UTC](https://forums.unrealengine.com/t/i-want-to-click-on-an-actor-on-the-level-with-the-widget-displayed/2169207/4 "2024-12-04T07:48:39Z")

</div>

Make sure these are setup before:

Controller BP

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

Widget button anchor doesnt take whole screen

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/8/9/d8991ef43501f6bc24b8e7c532c73dfcc83a905e.png)

---

<div class="post-metadata">

**Author:** ![tarotarounchi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tarotarounchi](https://forums.unrealengine.com/u/tarotarounchi)\
**Post date:** [December 4, 2024, 8:03am UTC](https://forums.unrealengine.com/t/i-want-to-click-on-an-actor-on-the-level-with-the-widget-displayed/2169207/5 "2024-12-04T08:03:23Z")

</div>

Click event settings for player controllers  
Anchor settings for each button

All of these settings are exactly as you describe.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/e/b/eeb41873bbb1e41dea011e9de2a048dbca7d6b37.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/e/1ae11d1d0fe83d91bec90deddc5f1bf5aacc1768.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/d/0/7d035bcf032a890e5b8e840ce4f09c2563391359.png)

---

<div class="post-metadata">

**Author:** ![Arodi007](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arodi007/32/1022275_2.png) [@Arodi007](https://forums.unrealengine.com/u/Arodi007)\
**Post date:** [December 4, 2024, 8:39am UTC](https://forums.unrealengine.com/t/i-want-to-click-on-an-actor-on-the-level-with-the-widget-displayed/2169207/6 "2024-12-04T08:39:53Z")

</div>

does the click on actor work without the ui displayed ?

---

<div class="post-metadata">

**Author:** ![tarotarounchi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tarotarounchi](https://forums.unrealengine.com/u/tarotarounchi)\
**Post date:** [December 4, 2024, 9:42am UTC](https://forums.unrealengine.com/t/i-want-to-click-on-an-actor-on-the-level-with-the-widget-displayed/2169207/7 "2024-12-04T09:42:24Z")

</div>

Yes, with this widget itself removed, the clicks on the actor work as intended.

---

<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:** [December 4, 2024, 10:07am UTC](https://forums.unrealengine.com/t/i-want-to-click-on-an-actor-on-the-level-with-the-widget-displayed/2169207/8 "2024-12-04T10:07:15Z")

</div>

Do you have any script in the widget? Especially in `onMouseDown`? For example:

The **root** element of your widget:

![image](https://d3kjluh73b9h9o.cloudfront.net/optimized/4X/9/c/7/9c7b610f67176e604b37e8ad994a52c3533df997_2_690x86.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/a/eaa301240cfd5498c1023ecdf1c075b7c4b58d85.png)

Is set to `Visible`; if your widget does this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/b/6/4b6c659b38f938c357818fc677668ab4a7adf3e6.png)

No single click will reach the player controller.

* * *

> [@tarotarounchi](#):
>
> with this widget itself removed, the clicks on the actor work as intended.

What are the chances the widget itself sets `Input Mode` to be `UI Only`?

---

<div class="post-metadata">

**Author:** ![tarotarounchi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tarotarounchi](https://forums.unrealengine.com/u/tarotarounchi)\
**Post date:** [December 4, 2024, 1:13pm UTC](https://forums.unrealengine.com/t/i-want-to-click-on-an-actor-on-the-level-with-the-widget-displayed/2169207/9 "2024-12-04T13:13:42Z")

</div>

Thanks for the reply!

＞What are the chances the widget itself sets Input Mode to be UI Only?

I tried connecting the following nodes but no improvement.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/0/e/b0e9240b46ac5a1627dc104e55ed78e63e129bd7.png)

I will also share the specific goal I envision, just in case.

In the first half of the video, when I click on an actor on the level with the corresponding widget visible, it does not respond.

In the second half of the video, if you set the visibility of the widget to Hidden in Debug and click on it, you will see a debug log with blue text that shows that the actor was successfully accessed.  
If this debug log flows while this widget is displayed, it is successful.

---

<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:** [December 4, 2024, 1:47pm UTC](https://forums.unrealengine.com/t/i-want-to-click-on-an-actor-on-the-level-with-the-widget-displayed/2169207/10 "2024-12-04T13:47:59Z")

</div>

How do you add this widget to the viewport? `Create Widget` → `Add To Viewport`? Or, perhaps, you used a `Widget Component`?

> I would like to make click judgments on actors even if they click on places other than the various buttons.

Are you using `onClicked` in the actor for this; is this the part that prints when the widget is not there?

* * *

> [@Everynone](#):
>
> Do you have any script in the widget? Especially in `onMouseDown`?

Could you confirm this?

* * *

> [@tarotarounchi](#):
>
> I will also share the specific goal I envision, just in case.

It’s pretty clear. The thing is that there’s nothing in the setup that _we can see_ that could be causing this. This should not be happening under regular circumstances.

Could you do us a favour:

- create a brand new simple widget with just a `Canvas` + one `Button`
- leave all visibility settings at default
- add it to the viewport instead of the `Camera Change` widget

Does this new widget allow you to click through?

---

<div class="post-metadata">

**Author:** ![tarotarounchi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tarotarounchi](https://forums.unrealengine.com/u/tarotarounchi)\
**Post date:** [December 5, 2024, 7:11am UTC](https://forums.unrealengine.com/t/i-want-to-click-on-an-actor-on-the-level-with-the-widget-displayed/2169207/11 "2024-12-05T07:11:29Z")

</div>

> How do you add this widget to the viewport? `Create Widget` → `Add To Viewport` ? Or, perhaps, you used a `Widget Component` ?

Create Widget → Widget Animation to toggle display/hide.  
Add to vieport is not used.

> Are you using `onClicked` in the actor for this

Yes, OnClicked is implemented for actors that are clicked.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/e/a/2eac9df2ed41de74cf4f9cd6cf03b63fb6512d7a.png)

> is this the part that prints when the widget is not there?

If you are referring to the debug log in blue, you are correct. In the video, the log printed when the widget is hidden is evidence that the actor’s OnClicked was activated.

> Do you have any script in the widget? Especially in `onMouseDown`?  
> Could you confirm this?

There are six events implemented in the widget.

➀Process to store child widgets in ButtonBox

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/3/3037874de0f5eeb4905b7eaf64847a4aa7dd0bfa.png)

②③④OnPressed processing of three buttons

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/6/0/460a9863e77b7d7f82052fb5d515ef51d86371da.png)

⑤⑥Showing and hiding child widgets stored in ButtonBox

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

> Could you do us a favour:  
> create a brand new simple widget with just a Canvas + one Button  
> leave all visibility settings at default  
> add it to the viewport instead of the Camera Change widget  
> Does this new widget allow you to click through?

We have verified this and will share the video.  
In the beginning of the video, the actor does not respond when there is a widget.

In the middle of the video, only the widget of campus panel + button is shown, but I could not click through.

![image](https://d3kjluh73b9h9o.cloudfront.net/optimized/4X/0/e/e/0ee021303ccc6d20d4233403387970d527f6e3e4_2_690x52.png)

At the end of the video, with the widget removed, the actor responds without any problem.

---

<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:** [December 5, 2024, 7:47am UTC](https://forums.unrealengine.com/t/i-want-to-click-on-an-actor-on-the-level-with-the-widget-displayed/2169207/12 "2024-12-05T07:47:28Z")

</div>

> [@tarotarounchi](#):
>
> Create Widget → Widget Animation to toggle display/hide.  
> Add to vieport is not used.

This does not add up. Could you please explain how this widget is created and shown. If Add to Viewport is not used, how does the widget end up on the screen?

Essentially, this behaviour is caused by something that has yet to mentioned here.

• are there any plugins in use?  
• C++?

* * *

![image](https://d3kjluh73b9h9o.cloudfront.net/optimized/4X/9/5/9/9593baaf381ade1b1eef6a85430dcedeaefec92c_2_690x73.png)

Regarding, this - why is the Canvas `Visible` - are these **default** settings in your project? Could you try it with this new widget but with canvas set to `Not Hit-Testable (Self Only)`

I sense there are important things about the project you never mentioned. Something along the lines of… “oh, I’m using `Horror Engine`, btw…” 😇

---

<div class="post-metadata">

**Author:** ![tarotarounchi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tarotarounchi](https://forums.unrealengine.com/u/tarotarounchi)\
**Post date:** [December 5, 2024, 9:37am UTC](https://forums.unrealengine.com/t/i-want-to-click-on-an-actor-on-the-level-with-the-widget-displayed/2169207/13 "2024-12-05T09:37:48Z")

</div>

Oh, I was able to find the problem and solve it!

The widget in question was implemented to switch visibility depending on the action in the game, but the visibility setting was set to “Visible” when displayed: …

I re-set it to “Not Hit Testable (Self Only)” and verified that it behaves as intended!

I had been verifying the widget’s own settings all along, but there was a problem with the implementation on the visibility control side.

Sorry for the hassle caused by this easy mistake.  
Your response was very helpful!

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

---

<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:** [December 5, 2024, 9:40am UTC](https://forums.unrealengine.com/t/i-want-to-click-on-an-actor-on-the-level-with-the-widget-displayed/2169207/14 "2024-12-05T09:40:39Z")

</div>

> [@Everynone](#):
>
> Do you have any script in the widget?

> [@tarotarounchi](#):
>
> Add to vieport is not used.

🤷

* * *

Glad to hear you fixed it!

---

<div class="post-metadata">

**Author:** ![tarotarounchi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tarotarounchi](https://forums.unrealengine.com/u/tarotarounchi)\
**Post date:** [December 5, 2024, 9:41am UTC](https://forums.unrealengine.com/t/i-want-to-click-on-an-actor-on-the-level-with-the-widget-displayed/2169207/15 "2024-12-05T09:41:55Z")

</div>

I am really sorry about that.  
I was mistaken. …

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [January 4, 2025, 9:42am UTC](https://forums.unrealengine.com/t/i-want-to-click-on-an-actor-on-the-level-with-the-widget-displayed/2169207/16 "2025-01-04T09:42:43Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
