# One click to rule them all

**URL:** <https://forums.unrealengine.com/t/one-click-to-rule-them-all/2685417>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [December 16, 2025, 8:39am UTC](https://forums.unrealengine.com/t/one-click-to-rule-them-all/2685417 "2025-12-16T08:39:10Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Subform1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/subform1/32/1135595_2.png) [@Subform1](https://forums.unrealengine.com/u/Subform1)\
**Post date:** [December 16, 2025, 8:39am UTC](https://forums.unrealengine.com/t/one-click-to-rule-them-all/2685417/1 "2025-12-16T08:39:10Z")

</div>

Hello good people, could someone please help me and provide a solution on how to use mouse click to do several things? If you click once, the player will move there, if you hold the click the camera can be rotated, and when I double click on an interactive object it will interact. I was able to set up that single click moves, I can rotate the camera and the double click is recognized, but when I double click it also implements single click movement and sometimes while I rotate the camera it implements also single click. I am not gonna post the spaghetti of blueprint but I’m sure that someone smarter can provide a much simpler solution.

---

<div class="post-metadata">

**Author:** ![RedGrimnir](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redgrimnir/32/1054683_2.png) [@RedGrimnir](https://forums.unrealengine.com/u/RedGrimnir)\
**Post date:** [December 16, 2025, 10:09am UTC](https://forums.unrealengine.com/t/one-click-to-rule-them-all/2685417/2 "2025-12-16T10:09:35Z")

</div>

Hi there,

You can make a very very simple moderator if you like. When player click LeftMouseButton, you can have a very brief delay to decide what the click actually meant.

1st Click (ButtonDown)-\> SetTimer (PendingClick)  
1st Click (ButtonUp) → bool b1stButtonUp  
2nd Click (ButtonDown) -\>CancelTimer(PendingClick) → DoDoubleClickAction(Interact)

Timer(PendingClick) → if (b1stButtonUp) → DoSingleClickAction(Move)  
 → else → DoCameraMove

Happy developing.

PS : I don’t generally utter here but.

_Ash nazg durbatulûk, ash nazg gimbatul, ash nazg thrakatulûk, agh burzum-ishi krimpatul_ 👁

---

<div class="post-metadata">

**Author:** ![Subform1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/subform1/32/1135595_2.png) [@Subform1](https://forums.unrealengine.com/u/Subform1)\
**Post date:** [December 16, 2025, 4:24pm UTC](https://forums.unrealengine.com/t/one-click-to-rule-them-all/2685417/3 "2025-12-16T16:24:55Z")

</div>

@RedGrimnir Wow, thank you for such a fast reply. I just got home from work, and I will try your suggestion. I am relatively new to UE so I am having hard time visualizing from your description the nodes that are need and what is connected to what. Is all this done inside my character blueprint or a new input action?

---

<div class="post-metadata">

**Author:** ![RedGrimnir](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redgrimnir/32/1054683_2.png) [@RedGrimnir](https://forums.unrealengine.com/u/RedGrimnir)\
**Post date:** [December 16, 2025, 5:23pm UTC](https://forums.unrealengine.com/t/one-click-to-rule-them-all/2685417/4 "2025-12-16T17:23:17Z")

</div>

No worries,

You can do with single Input action or you can bind multiple actions (all single click but with different triggers)

However for the sake of the logic and previous post, I did with a single Input Action with additional enum to be tidy incase some one else also needs.

Input

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/3/7e358881135ecbb66c5f156c491c067db3a25eac.png)

Enum

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/8/f/d8f02bd796137872626c8199b1891ec02874d8fc.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/5/a/55ad4412c2ce08c24c60748583c4693a8a96e472.png)

Script

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/4/3/a43eef06016035ccfcbd6ffbebb20ae94d1d631b.jpeg)

Edit:

You can also switch actions from the event like this if you want to keep same organisation (event driven)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/d/3/1d358c4e3b2d3099e2ad9d75f2f83433204be874.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/4/ae48a1fe2628865d85d6633f700564608dae4621.png)

---

<div class="post-metadata">

**Author:** ![Subform1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/subform1/32/1135595_2.png) [@Subform1](https://forums.unrealengine.com/u/Subform1)\
**Post date:** [December 17, 2025, 5:26am UTC](https://forums.unrealengine.com/t/one-click-to-rule-them-all/2685417/5 "2025-12-17T05:26:10Z")

</div>

Thank you so much for this! It is perfect! You have my utmost gratitude! This is some higher level knowledge for me. I haven’t even heard of enum before, I was doing some “add click/ reset count; gate; delay… “ spaghetti. I hope I can come to you in the future for more knowledge and problem solving.

---

<div class="post-metadata">

**Author:** ![Subform1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/subform1/32/1135595_2.png) [@Subform1](https://forums.unrealengine.com/u/Subform1)\
**Post date:** [December 17, 2025, 3:18pm UTC](https://forums.unrealengine.com/t/one-click-to-rule-them-all/2685417/6 "2025-12-17T15:18:24Z")

</div>

@RedGrimnir Any chance I could trouble you for a simple node line from the double click to be used to interact with an object? I was able to do it but only when I am next to the object, and I did it with sphere trace by channel, break hit result, does implement interface… and I tried increasing the sphere radius but it still required me to be next to it.

Also, how do you take a screenshot of the blueprint so that I can show you? My nvidia screenshot just creates a black screenshot.

---

<div class="post-metadata">

**Author:** ![RedGrimnir](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redgrimnir/32/1054683_2.png) [@RedGrimnir](https://forums.unrealengine.com/u/RedGrimnir)\
**Post date:** [December 17, 2025, 3:34pm UTC](https://forums.unrealengine.com/t/one-click-to-rule-them-all/2685417/7 "2025-12-17T15:34:42Z")

</div>

Sure, win+shift+s or cmd+shift + s afaik to take ss,

You put here your code we take a look.

Also there is a node in unreal blueprints as

 ![42984-capture](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/8/e/38e9de56f0f130ed5f92356adf5b9a8061758104.jpeg)

---

<div class="post-metadata">

**Author:** ![Subform1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/subform1/32/1135595_2.png) [@Subform1](https://forums.unrealengine.com/u/Subform1)\
**Post date:** [December 17, 2025, 5:41pm UTC](https://forums.unrealengine.com/t/one-click-to-rule-them-all/2685417/8 "2025-12-17T17:41:10Z")

</div>

![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/8/69898f72623fd4030ce933bd2f84cbd380b88486.jpeg)

 ![3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/1/0/0104d7e8b31a28f061778a919294208226dd8771.jpeg)

 ![2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/1/ea1cb8417caaf87ead16b38b25323415af97b31b.jpeg)

@RedGrimnir Here it is. When I turn on the debug on the sphere, I can see it overlaps the cube, but I need to stand next to it. The idea is that once I start the game, I can double click on the objects regardless of my distance, since it will just have to open doors, turn the lights on/ off and change a material or two. Also, the size of the objects will be clickable hitboxes. Aaaaaaand since the project is suppose to be used on PC and mobile, do I just need to add touch interaction and copy all the settings you gave for the mouse click in order for it to work?

 ![4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/1/5/415af01640644b1bcf628f95489777ebae88a47d.jpeg)

---

<div class="post-metadata">

**Author:** ![Subform1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/subform1/32/1135595_2.png) [@Subform1](https://forums.unrealengine.com/u/Subform1)\
**Post date:** [December 17, 2025, 6:31pm UTC](https://forums.unrealengine.com/t/one-click-to-rule-them-all/2685417/9 "2025-12-17T18:31:25Z")

</div>

I experimented with what you posted and succeeded. Thank you again. Now the question that remains is how to add the touch function to act the same as with this one click/ triple function? I saw there is an “get hit result under finger” so I should just use that instead of “under cursor”?

 ![6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/a/dda38b7ef3056e3b810d152d801765110efc8a67.jpeg)

---

<div class="post-metadata">

**Author:** ![RedGrimnir](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redgrimnir/32/1054683_2.png) [@RedGrimnir](https://forums.unrealengine.com/u/RedGrimnir)\
**Post date:** [December 17, 2025, 6:43pm UTC](https://forums.unrealengine.com/t/one-click-to-rule-them-all/2685417/10 "2025-12-17T18:43:41Z")

</div>

I understand, so simply

1. You want a interaction with objects on the scene.
2. Interactions is boundless from distance, visibility centered interaction.
3. You want to use an interface for interactions (which is good)
4. Target platforms PC and Mobile

You already integrated the click moderators, it should be working as demonstrated.

You have an interface

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/1/2/01236cc6cea4dd7d3f0001a3440c9b180f8090e7.png)

Integrated in your pawn and in your interactable units. I made a test unit like this, simply changing a material on a cube when interface message received.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/1/3/61326e8fe10ee2c8dc36cf9449d6c347887e2538.jpeg)

On my pawn still same organisation , on double created a new function as TryInteract(). Additionally I show my cursor.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/7/8/1785ee426720b8c9fbaf29b2a30708441e0503b4.jpeg)

TryInteract() function as follows : 1st check objects under my cursor have interface  
 → if (true) → call interface  
 → if (false) → check same for finger and try interact.

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

Results

![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/6/b/d6b1f882310d4598b4c27f17b9b1ce25f6f88b64.gif)

In your scripts you make line trace from actor to same actor position which simply will return nothing.

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

You can try doing like that, with simply

`Normalize( GetActorLocation() ) * 500 + GetActorLocation()`

and plug into the end of trace so that your trace starts from your actor center, goes 500 units in direction facing and returns if something is hit.

However its on Tick() which runs all the time, the way I show you is better since it will use tracing only when its double clicked meaning player meant to tryinteract()

Let us know.

---

<div class="post-metadata">

**Author:** ![Subform1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/subform1/32/1135595_2.png) [@Subform1](https://forums.unrealengine.com/u/Subform1)\
**Post date:** [December 17, 2025, 7:47pm UTC](https://forums.unrealengine.com/t/one-click-to-rule-them-all/2685417/11 "2025-12-17T19:47:07Z")

</div>

![UnrealEngine52025.12.17-20.39.22.01-ezgif.com-video-to-gif-converter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/b/2/1b20144fac49f3b64314aacd9653e9496aba6b82.gif)

Wow, I am amazed how many methods there are to keep things organized, like that “try interact” function. This was an eye opener. Everything works flawlessly. Thank you!

---

<div class="post-metadata">

**Author:** ![Subform1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/subform1/32/1135595_2.png) [@Subform1](https://forums.unrealengine.com/u/Subform1)\
**Post date:** [December 18, 2025, 7:21am UTC](https://forums.unrealengine.com/t/one-click-to-rule-them-all/2685417/12 "2025-12-18T07:21:35Z")

</div>

@RedGrimnir Following all the you shared, I was able to simplify my interaction even further and keep it organized. I abandoned the double click and stuck with only one click and hold. I wanted to post it here because I am really happy for all your help my friend. Also, if I did some unnecessary steps in my logic, please let me know. Thank you again.

 ![7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/2/b/92b5af494a4f06607af83f5caa2c42eff564d492.jpeg)  
 ![8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/f/0efa61b44ab90e7c2fedb81f2fe458f1a1b139d1.jpeg)

---

<div class="post-metadata">

**Author:** ![RedGrimnir](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redgrimnir/32/1054683_2.png) [@RedGrimnir](https://forums.unrealengine.com/u/RedGrimnir)\
**Post date:** [December 18, 2025, 10:27am UTC](https://forums.unrealengine.com/t/one-click-to-rule-them-all/2685417/13 "2025-12-18T10:27:35Z")

</div>

My pleasure, glad that it works and you can now make more design decisions on it matching your taste of gameplay aspects. There is nothing stands off and if something works, it just works no need to be too cautious about it.

Happy developing.
