Is it possible to load a texture for a brush by a string name?

Hello! I can’t seem to find any proper way to use a string as the name of a texture in order to dynamically load the texture for a button widget. I have a blueprints function that formats a series of button widgets by editing the brushes:

106980-brush.png

Here, the brush texture is using the “Acid_Arrow” texture which has been properly imported into Unreal. What I’d like to do is make it so I could select a texture dynamically. Something like:

106982-brush2.png

This is conceptual, of course, but it should be pretty obvious what I’d like to do. I understand Make SlateBrush is looking for an object reference. Are textures objects at this point? Not really sure …

Any help would be appreciated!

You could store an array of images, check if the string name = the correct name. If true set the index of the array for the image desired.

Hope this helps!

or use the structure insted of array and do the same thing.