How to load texture file and apply to button image during runtime dynamically?

Hello,
I have a common button widget in which the button contains an image and during runtime I create a menu with multiple buttons where i update each button image dynamically during runtime through their file name.

The issue that im facing currently is when I pass the texture file name to update the image in button, it doesn’t update or load the texture dynamically during run time.
But when I choose the same texture file from the dropdown menu for button image in widget settings it will show during the runtime.

if i reload that particular texture and run the game then it will show that image dynamically.

Any ideas or suggestions??
any help would be highly appreciated :clap:

the dropdown works cause its a cooked reference, dynamic file name needs you to load it at runtime first. LoadObject wont catch disk files.

for widget button you load external image to UTexture2D (ImportFileAsTexture2D) then make a Brush from it and SetBrush on the button image. like: Tex → MakeBrushFromTexture → SetBrush on Image widget, or set dynamic material on button.

also make sure you call it after widget constructed, not before. and use absolute path like FPaths::ProjectDir() + “ContentExternal/my.png” for testing, then later let user pick via file dialog. its not hitchy if you load async

btw runtime directory watcher from fab Runtime Directory Watcher — Hot-Folder File Events & Async Texture Loader | Fab worked for me