UE4/5 批量进行贴图Texture压缩、修改饱和度

该插件下载地址:

🍞正在为您运送作品详情https://mbd.pub/o/bread/ZZWYmpxw

适用于 UE4 4.25/4.26/4.27 UE5 以上版本

在Edit - Plugins中分别开启

插件 Python Editor Script Plugin

插件 Editor Scripting Utilites

如果会python代码,可以参照下面代码自己写一下:

python代码

1.获取到所选的texture

python 复制代码
# 获取当前的编辑器对象
editor_util = unreal.EditorUtilityLibrary.get_selected_assets()

2.获取列表的texture

python 复制代码
# 过滤该列表,使之只包含Texture2D贴图。

myTextures = unreal.EditorFilterLibrary.by_class(editor_util, unreal.Texture2D)

3.写一个方法,将texture进行maxsize的设置

python 复制代码
texture.set_editor_property('max_texture_size', MaxSize)

效果:

同时,可以配合editor blueprint ,添加到右键菜单中:

同时,你还可以继续修改其它参数,

如,批量修改贴图的饱和度:

相关推荐
狂云歌1 天前
AI写UE的3Dgame
人工智能·3d·ue5·游戏程序
江上闲人.3 天前
Wardogs战犬\战狗Beta测试启动报错UE崩溃卡顿?解决方法来了
游戏·游戏引擎·虚幻·战犬·战狗·wardogs
杨丰玮4183 天前
从零手写Java飞机躲障碍游戏|Swing绘图、鼠标跟随、计时器碰撞检测实战(五)
java·python·游戏·游戏引擎·图形渲染·动画·贴图
日月云棠5 天前
UE5源码分析之Editor——Blutility模块全面分析
ue5
日月云棠5 天前
UE5源码分析之Editor——BehaviorTreeEditor模块全面分析
ue5
日月云棠5 天前
UE5源码分析之Editor——AssetTagsEditor模块全面分析
ue5
远离UE46 天前
UE5 显存 虚拟内存 深入学习笔记
笔记·学习·ue5
日月云棠6 天前
UE5源码分析之Editor——AnimationSettings模块全面分析
ue5
远离UE47 天前
UE5 SF_VertexShader 如何使用
ue5
电子云与长程纠缠7 天前
UE5 Lyra PocketWorld进行3D内容UI预览 - 上
开发语言·学习·3d·ue5·游戏引擎