本插件从本地或网络加载纹理
支持JPG,PNG,TGA,BMP,PSD,GIF,HDR,PIC格式
Load Texture From Local
![[UE虚幻引擎] DT Load Texture 运行时加载纹理图片 插件说明 [UE虚幻引擎] DT Load Texture 运行时加载纹理图片 插件说明](https://dt.cq.cn/wp-content/uploads/2024/07/image.png)
从电脑本地加载图片
输入:
File Path : 图片完整路径地址
输出:
Return Value: 纹理对象(UTexture2D), 对象无效则说明加载失败。
Load Texture From Network
![[UE虚幻引擎] DT Load Texture 运行时加载纹理图片 插件说明 [UE虚幻引擎] DT Load Texture 运行时加载纹理图片 插件说明](https://dt.cq.cn/wp-content/uploads/2024/07/image-1.png)
从网络加载图片
输入:
URL : 图片网站路径地址
On Http Texture:绑定一个自定义事件,当网络图片加载完成时会回调这个自定义事件。
自定义事件参数说明:
URL: 访问的图片路径地址
Texture:纹理对象。对象无效则说明加载失败
注:如果打包提示失败,请把插件放在项目目录 YourProject\Plugins 中,并删除插件 Content 目录中的 BP_LoadImage.uasset 和 UI_LoadImage.uasset文件。
Hey there, just bought your product and i’m a bit of a junior in dev. I added the “load texture from local” in the hopes to get some hi quality screenshots during runtime and show them in a gallery widget. After i copy the exact same path as the screenshots are found, its seems to be getting a invalid ref to the return value.
also i would greatly apreciate, if possible, if you could point me to a structure after the return value, should i create an array to set the screenshots as textures for the images? Thank you.
I don’t know exactly what you’re doing here, this plugin is to load a local image and then a textured 2D object。
If you have any questions, you can send me an email [email protected]
Managed to get it going!
I don’t know exactly what you’re doing here, this plugin is to load a local image and then a textured 2D object。
If you have any questions, you can send me an email [email protected]