# StaticMeshComponent OnClicked doesn't work

**URL:** <https://forums.unrealengine.com/t/staticmeshcomponent-onclicked-doesnt-work/360336>\
**Category:** Community & Industry Discussion\
**Tags:** staticmeshcomponent, unreal-engine, delegates, Components, question\
**Created:** [June 10, 2016, 5:07pm UTC](https://forums.unrealengine.com/t/staticmeshcomponent-onclicked-doesnt-work/360336 "2016-06-10T17:07:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_9e83908a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9e83908a](https://forums.unrealengine.com/u/anonymous_user_9e83908a)\
**Post date:** [June 10, 2016, 5:07pm UTC](https://forums.unrealengine.com/t/staticmeshcomponent-onclicked-doesnt-work/360336/1 "2016-06-10T17:07:51Z")

</div>

When I bind an event to the functions onbegincursorover onendcursorover or onclicked from a StaticMeshComponent, they won’t execute since 4.12

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [June 10, 2016, 7:54pm UTC](https://forums.unrealengine.com/t/staticmeshcomponent-onclicked-doesnt-work/360336/2 "2016-06-10T19:54:54Z")

</div>

Hello,

I’ve tested this in 4.11 and 4.12 and it seems to be working as intended. Could you provide your setup so I can ensure I am mirroring it properly?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9e83908a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9e83908a](https://forums.unrealengine.com/u/anonymous_user_9e83908a)\
**Post date:** [June 13, 2016, 12:26pm UTC](https://forums.unrealengine.com/t/staticmeshcomponent-onclicked-doesnt-work/360336/3 "2016-06-13T12:26:41Z")

</div>

Hi,

I updated one of our maps from 4.11 to 4.12 and then it stopped working. I also testet it with a new map this morning, where it worked. After serveral hours I finally found out, that one of our other blueprints was interfering, which was why it stopped working.  
Anyway: thanks for your quick repsonse and sorry for bothering you!

---

<div class="post-metadata">

**Author:** ![DerChris](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DerChris](https://forums.unrealengine.com/u/DerChris)\
**Post date:** [June 21, 2016, 3:04pm UTC](https://forums.unrealengine.com/t/staticmeshcomponent-onclicked-doesnt-work/360336/4 "2016-06-21T15:04:01Z")

</div>

just had the same problem. I’m connecting a custom function to OnClicked using C++. Could not compile anymore. Solution was to change the signature of your custom function to:

CustomOnClicked(UPrimitiveComponent\* TouchedComponent, FKey key);

---

<div class="post-metadata">

**Author:** ![modena3d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@modena3d](https://forums.unrealengine.com/u/modena3d)\
**Post date:** [March 28, 2017, 2:59am UTC](https://forums.unrealengine.com/t/staticmeshcomponent-onclicked-doesnt-work/360336/5 "2017-03-28T02:59:47Z")

</div>

I also have the same problem
