# \#onclicked

**URL:** https://forums.unrealengine.com/tag/onclicked/2040.md

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

---

## [Pop Up Dialog Device Custom Menu UI Butten Issue!](https://forums.unrealengine.com/t/pop-up-dialog-device-custom-menu-ui-butten-issue/2739336)

<div class="topic-metadata">

**Author:** [@yoshili](https://forums.unrealengine.com/u/yoshili)\
**Replies:** 2\
**Last updated:** [August 31, 2026, 6:00pm UTC](https://forums.unrealengine.com/t/pop-up-dialog-device-custom-menu-ui-butten-issue/2739336 "2026-08-31T18:00:29Z")

</div>

Summary I want to make a Custom UI Widget based of ModelDialog. I set all UI’s Up just in case. There is a issue with the button responding instances. All the buttons are binded with the 100% accorat type of responded bu…

---

## [Right click on an actor](https://forums.unrealengine.com/t/right-click-on-an-actor/299218)

<div class="topic-metadata">

**Author:** [@alucarders](https://forums.unrealengine.com/u/alucarders)\
**Replies:** 15\
**Last updated:** [December 1, 2022, 6:58pm UTC](https://forums.unrealengine.com/t/right-click-on-an-actor/299218 "2022-12-01T18:58:28Z")

</div>

Hi! I’m trying to implement OnClicked event for an actor but for the right mouse button. I didn’t find anything in unreal events and didn’t manage to create one. So I just want some basics: a player presses right button…

---

## [Move an AI with an "onclicked" button](https://forums.unrealengine.com/t/move-an-ai-with-an-onclicked-button/404275)

<div class="topic-metadata">

**Author:** [@Fniii](https://forums.unrealengine.com/u/Fniii)\
**Replies:** 5\
**Last updated:** [November 3, 2021, 12:07am UTC](https://forums.unrealengine.com/t/move-an-ai-with-an-onclicked-button/404275 "2021-11-03T00:07:31Z")

</div>

Hi everybody, I warn I am a noob ^^ Everything is in the title, I created a widget with a button and I would like my AI to follow me when I press it. I tried it like this : https://i.imgur.com/Jn9nlrG.png But it coul…

---

## [How to change camera with mouseclick?](https://forums.unrealengine.com/t/how-to-change-camera-with-mouseclick/489559)

<div class="topic-metadata">

**Author:** [@mahbg](https://forums.unrealengine.com/u/mahbg)\
**Replies:** 7\
**Last updated:** [October 7, 2021, 8:18am UTC](https://forums.unrealengine.com/t/how-to-change-camera-with-mouseclick/489559 "2021-10-07T08:18:02Z")

</div>

Hello! Everything seems ok, have you checked thatOnClicked method is called?

---

## [UI Button is not working...](https://forums.unrealengine.com/t/ui-button-is-not-working/488776)

<div class="topic-metadata">

**Author:** [@shivansh\_pandey2](https://forums.unrealengine.com/u/shivansh_pandey2)\
**Replies:** 2\
**Last updated:** [September 22, 2021, 4:41pm UTC](https://forums.unrealengine.com/t/ui-button-is-not-working/488776 "2021-09-22T16:41:15Z")

</div>

I am creating a user widget which generates random number and I followed this video from YouTube: https://www.youtube.com/watch?v=bWoew0fa\_xA&t=731s but the problem is that my button is not responding when I am trying …

---

## [How can I fix this infinite loop?](https://forums.unrealengine.com/t/how-can-i-fix-this-infinite-loop/481204)

<div class="topic-metadata">

**Author:** [@Chief\_Man](https://forums.unrealengine.com/u/Chief_Man)\
**Replies:** 28\
**Last updated:** [April 2, 2021, 8:14am UTC](https://forums.unrealengine.com/t/how-can-i-fix-this-infinite-loop/481204 "2021-04-02T08:14:27Z")

</div>

I am trying to setup a play button on the main menu of my project which loads the user into the game world, but when I click play I get a “Infinite Loop Detected” error in the message log. If I click show, it brings me t…

---

## [OnClicked event not working in world space UI as of 4.26](https://forums.unrealengine.com/t/onclicked-event-not-working-in-world-space-ui-as-of-4-26/477534)

<div class="topic-metadata">

**Author:** [@JonDadley](https://forums.unrealengine.com/u/JonDadley)\
**Replies:** 0\
**Last updated:** [January 20, 2021, 4:46pm UTC](https://forums.unrealengine.com/t/onclicked-event-not-working-in-world-space-ui-as-of-4-26/477534 "2021-01-20T16:46:17Z")

</div>

As of 4.26, some world space UI that uses OnClicked events has stopped firing the event when the buttons are pressed. The buttons animate correctly when I click down and release the mouse but the events do not fire. The …

---

## [C++ OnClicked mesh component works on parent but not child](https://forums.unrealengine.com/t/c-onclicked-mesh-component-works-on-parent-but-not-child/476097)

<div class="topic-metadata">

**Author:** [@Darthmarshie](https://forums.unrealengine.com/u/Darthmarshie)\
**Replies:** 1\
**Last updated:** [December 18, 2020, 1:42pm UTC](https://forums.unrealengine.com/t/c-onclicked-mesh-component-works-on-parent-but-not-child/476097 "2020-12-18T13:42:12Z")

</div>

I have a C++ Class EnemyBaseClass. It has this function in: void AEnemyBaseClass::OnEnemyClicked(UPrimitiveComponent\* pComponent, FKey inKey) { UE\_LOG(LogTemp, Log, TEXT("WAS CLICKED")); } The Constructor has this: …

---

## [How to call functions from UMG?](https://forums.unrealengine.com/t/how-to-call-functions-from-umg/291178)

<div class="topic-metadata">

**Author:** [@TheTrice](https://forums.unrealengine.com/u/TheTrice)\
**Replies:** 11\
**Last updated:** [August 18, 2019, 10:30pm UTC](https://forums.unrealengine.com/t/how-to-call-functions-from-umg/291178 "2019-08-18T22:30:41Z")

</div>

So when i used to create buttons using actors , i would just have on clicked event in my level blueprint for this actor , and then i would be able to call all events i need in my game , but using umg i binded one of the …

---

## [Dynamic button text blueprint](https://forums.unrealengine.com/t/dynamic-button-text-blueprint/444040)

<div class="topic-metadata">

**Author:** [@panserzap](https://forums.unrealengine.com/u/panserzap)\
**Replies:** 1\
**Last updated:** [February 24, 2019, 1:45pm UTC](https://forums.unrealengine.com/t/dynamic-button-text-blueprint/444040 "2019-02-24T13:45:28Z")

</div>

So basically i have created a button and i want each time the button is clicked to change the text of the button. I can’t seem to be able to make it get the next value from the array that has the texts. So this is what i…

---

## [OnClicked event only fires when double clicked](https://forums.unrealengine.com/t/onclicked-event-only-fires-when-double-clicked/363191)

<div class="topic-metadata">

**Author:** [@frobro98](https://forums.unrealengine.com/u/frobro98)\
**Replies:** 9\
**Last updated:** [January 20, 2019, 8:19pm UTC](https://forums.unrealengine.com/t/onclicked-event-only-fires-when-double-clicked/363191 "2019-01-20T20:19:42Z")

</div>

I just upgraded from 4.10, and in that version, clicking works perfectly fine. I am curious if I’m missing some setting that is in 4.12 and not in 4.10 that made the OnClicked event only fire with a double click. Just th…

---

## [How to pass self-reference to UButton's OnClicked delegate (UMG)?](https://forums.unrealengine.com/t/how-to-pass-self-reference-to-ubuttons-onclicked-delegate-umg/398841)

<div class="topic-metadata">

**Author:** [@WHSolv](https://forums.unrealengine.com/u/WHSolv)\
**Replies:** 12\
**Last updated:** [January 14, 2019, 7:19am UTC](https://forums.unrealengine.com/t/how-to-pass-self-reference-to-ubuttons-onclicked-delegate-umg/398841 "2019-01-14T07:19:22Z")

</div>

ButtonText is a UTextBlock variable in the header of UExtendedButton, if you want it to be there. If you have added TextBlock in UMG-editor, then it should be there by default. Double check Appearence and Behavior catego…

---

## [ForEachLoop in Level BP doesn't change the variable in any Array Element](https://forums.unrealengine.com/t/foreachloop-in-level-bp-doesnt-change-the-variable-in-any-array-element/440118)

<div class="topic-metadata">

**Author:** [@dirtyredd](https://forums.unrealengine.com/u/dirtyredd)\
**Replies:** 1\
**Last updated:** [December 26, 2018, 3:08am UTC](https://forums.unrealengine.com/t/foreachloop-in-level-bp-doesnt-change-the-variable-in-any-array-element/440118 "2018-12-26T03:08:14Z")

</div>

I will start by saying I am still very new to UE4 and coding in general so I am mostly sticking to Blueprints for everything. I am trying to make it to where when you rotate the camera and overlap trigger boxes it sets …

---

## [UI button with hover event that can be clicked through](https://forums.unrealengine.com/t/ui-button-with-hover-event-that-can-be-clicked-through/430424)

<div class="topic-metadata">

**Author:** [@Sam\_Carey](https://forums.unrealengine.com/u/Sam_Carey)\
**Replies:** 1\
**Last updated:** [July 28, 2018, 3:00pm UTC](https://forums.unrealengine.com/t/ui-button-with-hover-event-that-can-be-clicked-through/430424 "2018-07-28T15:00:07Z")

</div>

I am trying to create an invisible button that can run an OnHovered event but allows other buttons underneath to be pressed? Would this be possible?

---

## [2D Sprite On Clicked Event Not Consistent](https://forums.unrealengine.com/t/2d-sprite-on-clicked-event-not-consistent/428705)

<div class="topic-metadata">

**Author:** [@warhulk1745](https://forums.unrealengine.com/u/warhulk1745)\
**Replies:** 15\
**Last updated:** [July 4, 2018, 8:55pm UTC](https://forums.unrealengine.com/t/2d-sprite-on-clicked-event-not-consistent/428705 "2018-07-04T20:55:26Z")

</div>

Hello Everyone, I have a problem that’s really beginning to make me scratch the back of my skull. My 2D sprites aren’t firing off the “On Clicked” event every time. I thought that maybe the sprite was too thin and it w…

---

## [Message Says infinite loop, but I'm baffled.](https://forums.unrealengine.com/t/message-says-infinite-loop-but-im-baffled/428181)

<div class="topic-metadata">

**Author:** [@BrofessorJ](https://forums.unrealengine.com/u/BrofessorJ)\
**Replies:** 0\
**Last updated:** [June 26, 2018, 9:22pm UTC](https://forums.unrealengine.com/t/message-says-infinite-loop-but-im-baffled/428181 "2018-06-26T21:22:39Z")

</div>

I think the pictures can speak for themselves here. and when I have it link me directly to the blueprint with the issue… I had a simple “Remove From Parent” on the On Clicked(BackButton), but even after I took th…

---

## [Stuck in animation after onclick event](https://forums.unrealengine.com/t/stuck-in-animation-after-onclick-event/425799)

<div class="topic-metadata">

**Author:** [@rbanerjee96](https://forums.unrealengine.com/u/rbanerjee96)\
**Replies:** 0\
**Last updated:** [May 23, 2018, 7:59pm UTC](https://forums.unrealengine.com/t/stuck-in-animation-after-onclick-event/425799 "2018-05-23T19:59:09Z")

</div>

Apologies for being a total noob, I’m trying to learn UE4 by creating a project along the way, sadly i’m stuck as of now with multiple futile searches on google and YT. Which brings me to this: Animation stuck after eve…

---

## [Get parent reference when pressing a button in a Widget Blueprint](https://forums.unrealengine.com/t/get-parent-reference-when-pressing-a-button-in-a-widget-blueprint/418219)

<div class="topic-metadata">

**Author:** [@Pacman2000](https://forums.unrealengine.com/u/Pacman2000)\
**Replies:** 2\
**Last updated:** [February 26, 2018, 4:35pm UTC](https://forums.unrealengine.com/t/get-parent-reference-when-pressing-a-button-in-a-widget-blueprint/418219 "2018-02-26T16:35:53Z")

</div>

Hello, I let out the information of an array, create several horizontal boxes and fill them with texts and buttons. Well, for example, I would like that when pressing the delete button the horizontal box is deleted. I …

---

## [Event on clicked (Capsule)](https://forums.unrealengine.com/t/event-on-clicked-capsule/412367)

<div class="topic-metadata">

**Author:** [@RyzonPT](https://forums.unrealengine.com/u/RyzonPT)\
**Replies:** 1\
**Last updated:** [February 2, 2018, 11:40pm UTC](https://forums.unrealengine.com/t/event-on-clicked-capsule/412367 "2018-02-02T23:40:56Z")

</div>

Hello Im trying to call an Onclicked event and when it fires it should print something but for some reason it only fires sometimes. I have to press like 10 clicks so the event fires only once. Whats happening? is it no…

---

## [OnCursorOver Events work but OnClicked Doesn't](https://forums.unrealengine.com/t/oncursorover-events-work-but-onclicked-doesnt/397466)

<div class="topic-metadata">

**Author:** [@SorakTheHyena](https://forums.unrealengine.com/u/SorakTheHyena)\
**Replies:** 0\
**Last updated:** [July 15, 2017, 12:20pm UTC](https://forums.unrealengine.com/t/oncursorover-events-work-but-onclicked-doesnt/397466 "2017-07-15T12:20:24Z")

</div>

Hello all! I’ve created a grid of actors that spawn hierarchically. Each actor has binded OnBeingCursorOver, OnEndCursorOver and OnClicked events. Even with the click and mouse over events enabled and the collision visi…

---

## [Possible to get button reference when button is clicked?](https://forums.unrealengine.com/t/possible-to-get-button-reference-when-button-is-clicked/334922)

<div class="topic-metadata">

**Author:** [@BananasGoMoo](https://forums.unrealengine.com/u/BananasGoMoo)\
**Replies:** 4\
**Last updated:** [June 13, 2017, 3:06am UTC](https://forums.unrealengine.com/t/possible-to-get-button-reference-when-button-is-clicked/334922 "2017-06-13T03:06:30Z")

</div>

Is it possible to get a reference to a button when it is clicked? for example, I have a bunch of buttons on my UMG UI, and when any of them are clicked, I want to get the object name of the button that was clicked. I hav…

---

## [Bind OnClicked Events to buttons created at runtime.](https://forums.unrealengine.com/t/bind-onclicked-events-to-buttons-created-at-runtime/328041)

<div class="topic-metadata">

**Author:** [@XadE](https://forums.unrealengine.com/u/XadE)\
**Replies:** 22\
**Last updated:** [May 24, 2017, 2:50pm UTC](https://forums.unrealengine.com/t/bind-onclicked-events-to-buttons-created-at-runtime/328041 "2017-05-24T14:50:20Z")

</div>

Hello Everyone , I have scrollbox with buttons created at runtime based on number of .sav files in game folder. UButton \*save\_button = NewObject\<UButton\>(this); loadgame\_scrollbox-\>AddChild(save\_button); Each button r…

---

## [OnClicked event not working with motion controller](https://forums.unrealengine.com/t/onclicked-event-not-working-with-motion-controller/393355)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_30fb26c9](https://forums.unrealengine.com/u/anonymous_user_30fb26c9)\
**Replies:** 2\
**Last updated:** [May 12, 2017, 6:32pm UTC](https://forums.unrealengine.com/t/onclicked-event-not-working-with-motion-controller/393355 "2017-05-12T18:32:15Z")

</div>

I’m trying to create a material change sequence of events in VR. I have the second part working where I can click on a widget button and change an objects materials, But I’m trying to make it so when you click on the obj…

---

## [UMG button stops working as soon as I click inside player window](https://forums.unrealengine.com/t/umg-button-stops-working-as-soon-as-i-click-inside-player-window/377361)

<div class="topic-metadata">

**Author:** [@Monsieur\_Redmoth](https://forums.unrealengine.com/u/Monsieur_Redmoth)\
**Replies:** 2\
**Last updated:** [January 30, 2017, 3:03pm UTC](https://forums.unrealengine.com/t/umg-button-stops-working-as-soon-as-i-click-inside-player-window/377361 "2017-01-30T15:03:37Z")

</div>

Hi, here is a really Odd behavior I encoutered? I have this blueprint which spawns a button: And this behaviour happens: -the button works untill I click in the actual game window (when the mouse moves away from the…

---

## [OnClicked Event doesn't work on PaperFlipbook](https://forums.unrealengine.com/t/onclicked-event-doesnt-work-on-paperflipbook/382767)

<div class="topic-metadata">

**Author:** [@Rusbaron](https://forums.unrealengine.com/u/Rusbaron)\
**Replies:** 1\
**Last updated:** [January 25, 2017, 6:57am UTC](https://forums.unrealengine.com/t/onclicked-event-doesnt-work-on-paperflipbook/382767 "2017-01-25T06:57:55Z")

</div>

Create an actor,with PaperFlipbook and PaperSprite(for test) under flipbook. When i try to click or touch Flipbook, i see only string from PaperSprite,when i remove PaperSprite, i didn’t see anything…So any onclick event…

---

## [Onclicked problem](https://forums.unrealengine.com/t/onclicked-problem/381498)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_0858b4b9](https://forums.unrealengine.com/u/anonymous_user_0858b4b9)\
**Replies:** 0\
**Last updated:** [January 11, 2017, 1:34am UTC](https://forums.unrealengine.com/t/onclicked-problem/381498 "2017-01-11T01:34:01Z")

</div>

Hi, I’m new to UE4 and I’m working on a game like RISK. At the moment, I have a variable that holds the country that’s currently being hovered over and I want to make it so that it sets the attacking or defending countr…

---

## [How run function after clicking botton in plugin](https://forums.unrealengine.com/t/how-run-function-after-clicking-botton-in-plugin/375701)

<div class="topic-metadata">

**Author:** [@zzzlor](https://forums.unrealengine.com/u/zzzlor)\
**Replies:** 1\
**Last updated:** [November 7, 2016, 9:47pm UTC](https://forums.unrealengine.com/t/how-run-function-after-clicking-botton-in-plugin/375701 "2016-11-07T21:47:55Z")

</div>

Hi! I’m trying to create a plugin. But I don’t know much about it. While training I face a problem. I can’t use the function after clicking the button. I used this template: ModularBuild.h class FModularBuildModu…

---

## ["EventOnClicked" Actor does not activate after around 5-10 meters In 4.13.2](https://forums.unrealengine.com/t/eventonclicked-actor-does-not-activate-after-around-5-10-meters-in-4-13-2/374859)

<div class="topic-metadata">

**Author:** [@superbjenks](https://forums.unrealengine.com/u/superbjenks)\
**Replies:** 2\
**Last updated:** [October 31, 2016, 4:17am UTC](https://forums.unrealengine.com/t/eventonclicked-actor-does-not-activate-after-around-5-10-meters-in-4-13-2/374859 "2016-10-31T04:17:42Z")

</div>

Created a simple cube actor in 4.12.5 with script that destroy itself on click - works regardless of distance. 4.13.2 refuses to activate after a short distance.

---

## [4.9.2 Collapsed UMG still consumes mouse input](https://forums.unrealengine.com/t/4-9-2-collapsed-umg-still-consumes-mouse-input/336916)

<div class="topic-metadata">

**Author:** [@michaeleeli](https://forums.unrealengine.com/u/michaeleeli)\
**Replies:** 3\
**Last updated:** [August 15, 2016, 1:20pm UTC](https://forums.unrealengine.com/t/4-9-2-collapsed-umg-still-consumes-mouse-input/336916 "2016-08-15T13:20:51Z")

</div>

Hi, so during the game I spawn a 3D widget in front of me. Obviously any object behind the UMG cannot have its onClicked event called because I am clicking the widget in front of it. However, even after hiding the UMG, …

---

## [OnBeginCursorOver and OnClick Issue with UMG](https://forums.unrealengine.com/t/onbegincursorover-and-onclick-issue-with-umg/349192)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_dd30cce6](https://forums.unrealengine.com/u/anonymous_user_dd30cce6)\
**Replies:** 4\
**Last updated:** [April 15, 2016, 10:22am UTC](https://forums.unrealengine.com/t/onbegincursorover-and-onclick-issue-with-umg/349192 "2016-04-15T10:22:30Z")

</div>

I speculate this is a bug, so I am removing my post from “Using UE4” to post it here. We have an actor on our map with a cube static mesh. OnClick event for the actor (mesh component actually) doesn’t work. On the other…

[Next page](https://forums.unrealengine.com/tag/onclicked/2040.md?match_all_tags=true&page=1&tags%5B%5D=onclicked)
