前景图与背景图
约 171 字小于 1 分钟
2025-09-18
2.5.0
版本新增了模型前景图与背景图,原先直接在模型里制作的静态背景可以用这个功能代替

默认模型的前景图和背景图
添加前景图和背景图
在 ysm.json
中,找到 properties
字段,向其中添加 gui_foreground
和 gui_background
这两个字段,这里给了一个示例:
ysm.json
{
// ...
"properties": {
// ...
"extra_animation_classify": [],
"preview_animation": "gui",
"disable_preview_rotation": true,
"gui_no_lighting": false,
"gui_foreground": "textures/gui/foreground.png", // 这里是前景图路径
"gui_background": "textures/gui/background.png", // 这里是背景图路径
"default_texture": "default",
"render_layers_first": false,
"free": true
}
// ...
}
图片比例
推荐 52x90