# Input action only goes through sometimes

**URL:** <https://forums.unrealengine.com/t/input-action-only-goes-through-sometimes/2120210>\
**Category:** Blueprint\
**Tags:** Input, unreal-engine, Blueprint, question\
**Created:** [November 13, 2024, 2:20pm UTC](https://forums.unrealengine.com/t/input-action-only-goes-through-sometimes/2120210 "2024-11-13T14:20:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlackHole137](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlackHole137](https://forums.unrealengine.com/u/BlackHole137)\
**Post date:** [November 13, 2024, 2:20pm UTC](https://forums.unrealengine.com/t/input-action-only-goes-through-sometimes/2120210/1 "2024-11-13T14:20:17Z")

</div>

Hey there, i have a super simple setup that is acting very weird for some reason:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/e/f8e5bc8848eb49fc5993a28b416f536b96657022.png)  
Whenever you click the controller finds the actor you’re clicking on and prints out it’s name. However, for some reason clicking doesn’t do anything most of the time but occasionally works as intended. I’m on 5.3.2 (still using the old input system because i like it more). I have a different input action set up that works every time but changing this input action or plugging a working one into the same node tree doesn’t seem to do anything.

---

<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 13, 2024, 2:37pm UTC](https://forums.unrealengine.com/t/input-action-only-goes-through-sometimes/2120210/2 "2024-11-13T14:37:53Z")

</div>

- how do you obtain Hit Data?
- do you use use Left Mouse button for anything else?

---

<div class="post-metadata">

**Author:** ![BlackHole137](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlackHole137](https://forums.unrealengine.com/u/BlackHole137)\
**Post date:** [November 13, 2024, 4:29pm UTC](https://forums.unrealengine.com/t/input-action-only-goes-through-sometimes/2120210/3 "2024-11-13T16:29:21Z")

</div>

- Update cursor traces from the camera through the cursor and stores the hit to get what and where you’re hovering in 3D  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/b/c/5bc57b58a80c55104a80a667f6e3a850c1b1136e.png)
- Ctrl-F shows no other instances of the left mouse button event/the click action

---

<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 13, 2024, 4:35pm UTC](https://forums.unrealengine.com/t/input-action-only-goes-through-sometimes/2120210/4 "2024-11-13T16:35:49Z")

</div>

What **really** fails here? The click itself or the trace? Add a regular, Hello print string after.

> I have a different input action set up that works every time […] Ctrl-F shows no other instances of the left mouse button event/the click action

Not really what I meant, was merely wondering whether this could be an input consumption issue.

---

<div class="post-metadata">

**Author:** ![BlackHole137](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlackHole137](https://forums.unrealengine.com/u/BlackHole137)\
**Post date:** [November 13, 2024, 9:28pm UTC](https://forums.unrealengine.com/t/input-action-only-goes-through-sometimes/2120210/5 "2024-11-13T21:28:20Z")

</div>

Already tried that, it’s the click. I said the ctrl-f thing to say i’m 100% sure there’s nothing else resolving the same input (i checked for any other actions as well)

---

<div class="post-metadata">

**Author:** ![BlackHole137](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlackHole137](https://forums.unrealengine.com/u/BlackHole137)\
**Post date:** [November 13, 2024, 9:29pm UTC](https://forums.unrealengine.com/t/input-action-only-goes-through-sometimes/2120210/6 "2024-11-13T21:29:52Z")

</div>

Also, the trace is really simple and when it does get triggered it works so i don’t see how it could be the part that’s failing, it’s def something to do with the input

---

<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 13, 2024, 11:28pm UTC](https://forums.unrealengine.com/t/input-action-only-goes-through-sometimes/2120210/7 "2024-11-13T23:28:22Z")

</div>

What are your expectations here then? We get no info apart from the isolated scenario that does not work, input that is not consumed (100%) and a line trace that is very reliable.

Perhaps it’s time to spill the beans about the rest of the setup. Run the widget reflector, see if widgets get in the way. Explain how input modes are handled.

What’s unorthodox about the project? Plugins?

---

<div class="post-metadata">

**Author:** ![BlackHole137](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlackHole137](https://forums.unrealengine.com/u/BlackHole137)\
**Post date:** [November 14, 2024, 1:35pm UTC](https://forums.unrealengine.com/t/input-action-only-goes-through-sometimes/2120210/8 "2024-11-14T13:35:59Z")

</div>

Checked everything you said, tried setting input mode to game and UI on begin play and it fixed it. I was under the assumption it’s the default and you didn’t have to do that since i hadn’t ever encountered this issue before.  
Thanx for the help

---

<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:** [December 14, 2024, 1:36pm UTC](https://forums.unrealengine.com/t/input-action-only-goes-through-sometimes/2120210/9 "2024-12-14T13:36:23Z")

</div>

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