Changing an image in UI

HappyKat100
Fri, 15 Oct 2021 02:50:41 +0000
UI

Hi All,

I can’t figure out how to change an image in the UI (without binding). I was thinking it should be simple. I’ve tried all kinds of recommendations online, but nothing seems to work.

I’m simply taking a texture2d (“Item Image”) from a struct (“Inventory”) and want to update an image (“Equipped Image”) in my UI with that new texture2d. So, basically, I have an image in the UI and I simply want to change it with another image. I’ve tried all kinds of things, Set Brush, Make Brush etc. but nothing works. I don’t get errors, the code executes fine, but the image just doesn’t update.

I’ve seen some references to bugs in UE 4.26 around images but I’ve not found a workaround. I’ve also tried migrating to UE5.0 EA but I get the same result.

Please can someone help me out here? Am I doing something silly in my code?

Many thanks!

HK

5 posts - 1 participant