# How to press a button through UMG Widget

**URL:** <https://forums.unrealengine.com/t/how-to-press-a-button-through-umg-widget/445183>\
**Category:** UI\
**Tags:** unreal-engine, Widget, Blueprint, question, UMG, function-signature\
**Created:** [March 12, 2019, 7:57pm UTC](https://forums.unrealengine.com/t/how-to-press-a-button-through-umg-widget/445183 "2019-03-12T19:57:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_604435c6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_604435c6](https://forums.unrealengine.com/u/anonymous_user_604435c6)\
**Post date:** [March 12, 2019, 7:57pm UTC](https://forums.unrealengine.com/t/how-to-press-a-button-through-umg-widget/445183/1 "2019-03-12T19:57:20Z")

</div>

Hi everyone. I’m trying to make a button that when it is pressed it will change my game perspective. So I did it with keyboard button and it works well.

 ![271185-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/4/2/b42583c45812cc9eca8b92de6536611bc8b3c362.png)

But, I want to do the same function like the first one, when I press this button

 ![271186-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/a/9/4a96a02f4ad053e0b2759e8d224e84654a7d03d2.png)

I spent some time searching for answers and I don’t really see that they are related. Can anyone help? Thanks.

---

<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:** [March 12, 2019, 8:09pm UTC](https://forums.unrealengine.com/t/how-to-press-a-button-through-umg-widget/445183/2 "2019-03-12T20:09:15Z")

</div>

Create a _Custom Event_ in the _Third Person Character_ (TPC) blueprint and hook it up to the same nodes as the V key.  
In the widget, _Get Player Character_, cast to TPC, call the aforementioned event.

---

<div class="post-metadata">

**Author:** ![Nebula\_Games\_Inc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nebula\_Games\_Inc](https://forums.unrealengine.com/u/Nebula_Games_Inc)\
**Post date:** [March 12, 2019, 11:57pm UTC](https://forums.unrealengine.com/t/how-to-press-a-button-through-umg-widget/445183/3 "2019-03-12T23:57:50Z")

</div>

This video may help you. I create a button that affects player health when it is clicked. Just replace the script changing the health to a script that changes your view and you are good to go.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/4/fe4b2e9c40e1e16aa5665ad37d7a46af017e25e5.jpeg "Unreal Engine 4 Tutorial: Widget to Widget Communication") ](https://www.youtube.com/watch?v=BdARbvNrvQE)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fa0705bb1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fa0705bb1](https://forums.unrealengine.com/u/anonymous_user_fa0705bb1)\
**Post date:** [March 13, 2019, 1:56am UTC](https://forums.unrealengine.com/t/how-to-press-a-button-through-umg-widget/445183/4 "2019-03-13T01:56:46Z")

</div>

![271208-pic2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/8/c4841fae1b9ac68b938a7b02a0b0c137eed3eaa2.png)

This is what you want
