# change button image at runtime (blueprint)

**URL:** <https://forums.unrealengine.com/t/change-button-image-at-runtime-blueprint/317992>\
**Category:** UI\
**Tags:** button, hud, unreal-engine, runtime, Widget, Blueprint, question\
**Created:** [May 9, 2015, 12:44pm UTC](https://forums.unrealengine.com/t/change-button-image-at-runtime-blueprint/317992 "2015-05-09T12:44:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![siska](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@siska](https://forums.unrealengine.com/u/siska)\
**Post date:** [May 9, 2015, 12:44pm UTC](https://forums.unrealengine.com/t/change-button-image-at-runtime-blueprint/317992/1 "2015-05-09T12:44:04Z")

</div>

Hi,

I have a widget blueprint that I want to use in my HUD. It is basically a ‘Button’ that has a child of type ‘Image’.  
When I click the button (there are several in my HUD), I want it to have a ‘button selected’ look by changing the image into something else. The button will remain ‘selected’ until another one is clicked.

I feel like a complete idiot, but I just cannot get this to work … Hopefully one of you can help me …  
I have already tried many tutorials, but it seems like I’m always missing something important.  
I think I’m supposed to use a material instance with a parameter, or maybe a dynamic material, … ???

---

<div class="post-metadata">

**Author:** ![Raidfire.Net](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Raidfire.Net](https://forums.unrealengine.com/u/Raidfire.Net)\
**Post date:** [May 9, 2015, 4:43pm UTC](https://forums.unrealengine.com/t/change-button-image-at-runtime-blueprint/317992/2 "2015-05-09T16:43:29Z")

</div>

Hi,

go into your Widget, open the Event Graph and do this:

 ![42048-brushexample.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/b/7/1b7337a5c5b66d086008568180a68a2f55f93eb7.jpeg)

Capture is the “Get Image”. Change the values of the open inputs. If you want to change the image then just use Set Brush from texture.

Cheers

---

<div class="post-metadata">

**Author:** ![siska](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@siska](https://forums.unrealengine.com/u/siska)\
**Post date:** [May 10, 2015, 9:05am UTC](https://forums.unrealengine.com/t/change-button-image-at-runtime-blueprint/317992/3 "2015-05-10T09:05:17Z")

</div>

How can it be this simple ??? I can’t believe I wasted a week trying to figure this out …  
Thank you very much !

---

<div class="post-metadata">

**Author:** ![spaceharry](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spaceharry](https://forums.unrealengine.com/u/spaceharry)\
**Post date:** [June 15, 2016, 10:15pm UTC](https://forums.unrealengine.com/t/change-button-image-at-runtime-blueprint/317992/4 "2016-06-15T22:15:21Z")

</div>

Some super advanced way to change button image that is now possible with the power of Unreal Engine:

 ![94784-superimagechange.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/5/5/d55ad41b04b940836954c958bcb00ac7116085fe.png)

---

<div class="post-metadata">

**Author:** ![mertyildiran](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mertyildiran](https://forums.unrealengine.com/u/mertyildiran)\
**Post date:** [August 9, 2017, 4:02pm UTC](https://forums.unrealengine.com/t/change-button-image-at-runtime-blueprint/317992/5 "2017-08-09T16:02:30Z")

</div>

This answer is certainly better!

---

<div class="post-metadata">

**Author:** ![Augbrite](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Augbrite](https://forums.unrealengine.com/u/Augbrite)\
**Post date:** [January 31, 2019, 1:54pm UTC](https://forums.unrealengine.com/t/change-button-image-at-runtime-blueprint/317992/6 "2019-01-31T13:54:19Z")

</div>

Thank you, that was a great solution!

---

<div class="post-metadata">

**Author:** ![EnnePi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EnnePi](https://forums.unrealengine.com/u/EnnePi)\
**Post date:** [June 6, 2023, 9:07pm UTC](https://forums.unrealengine.com/t/change-button-image-at-runtime-blueprint/317992/7 "2023-06-06T21:07:47Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/b/6fb6b473c4d257511e522449668c2d28b912061d.jpeg)

I simply did it this way… On the first Make State Brush in “Image” is the image called “Widget.png”, and on the other Make State Brush in “Image” is the image called “WidgetBarra.png”. All handled with the Filp/Flop node, of course. The button in question is called “HiddenWidget” and is used to hide or display the entire widget. Or rather, all the other buttons and components of the widget itself.

---

<div class="post-metadata">

**Author:** ![Owl.UA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/owl.ua/32/1004080_2.png) [@Owl.UA](https://forums.unrealengine.com/u/Owl.UA)\
**Post date:** [May 9, 2024, 12:03pm UTC](https://forums.unrealengine.com/t/change-button-image-at-runtime-blueprint/317992/9 "2024-05-09T12:03:00Z")

</div>

Another solution is more simple:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/a/7/6a7299bff717805b3a5942bd8de491d0f8606070.jpeg "Unreal change widget button texture") ](https://www.youtube.com/watch?v=YAtrV7wnwoE)
