How to set an image for UMG button in C++?

What’s about if i’m getting my texture as a “UTexture2D”? How must i to load it?
I’m getting this problem: "UTexture2D *" is incompatible with parameter of type "UObject *".

1 Like