
Descrição
This plugin provides a UMG ImageDragButton widget. It supports loading local image files to generate corresponding Texture2D assets and automatically updates the button’s visual style with the loaded image.
This button component offers three available usage modes:
Directly drag and drop image files onto the button widget;
Pop up a file selection dialog to pick images when the ShowFileDialog option is enabled (enabled by default);
Call the exposed function SetImageFromPath to assign images via file path.
本插件提供 UMG 专用图片拖拽按钮 ImageDragButton,能够读取本地图像资源并转换为 Texture2D 纹理,同时自动更新按钮的外观显示素材。
该按钮组件具备三种使用方案:
拖拽导入:直接把本地图片拖拽到按钮控件上快速加载;
弹窗选择:开启 ShowFileDialog 选项后(默认开启),唤起文件选择窗口挑选图片;
代码赋值:调用提供的 SetImageFromPath 函数,通过文件路径指定图片。

