- Изменено
皮肤附件的警告是否必须处理
查看了Spine文档中有关皮肤的部分后,我尝试用 spine-boy 的素材做一个换肤练习。
在添加了几个皮肤之后,有一些附件上出现了黄色的警告图标
我阅读了有关 Attachment warnings 的文档。
文档描述了两种会出现警告的情况,但我感觉我的情况不是其中任何一种。
我的情况是这样的:
- 附件有权重,但权重的骨骼没有警告。(和文档第一条不符)
- 附件不在皮肤占位符里。(和文档第二条不符)
同理,我没有办法应用文档中的修复方法。
我的Spine源文件截图:
如果一个骨骼属于皮肤,那么是否该骨骼的所有附件都必须添加皮肤占位符?在上图的案例中,我在不同的皮肤中使用了不同的头发,因此我给头发附件添加了皮肤,又因为头发附件属于head骨头,head骨头上有警告提示,我又给head骨头添加了皮肤。因为head骨头有皮肤,所以head骨头下的眼镜附件又有警告提示。我现在是否必须也给眼镜附件添加皮肤?
目前播放效果是正常的,这是否意味我可以忽略警告图标,还是说我必须解决掉所有警告。
您好。从你发布的截图来看,我认为警告是由于骨骼head-control
属于一个皮肤,但附件goggles
和eye
不属于。这意味着它与用户指南中描述的以下情况一致。
the attachment is in a skin and has weights for a bone that is in a skin, but not in the attachment's skin.
从皮肤中移除head-control
或在皮肤中添加附件goggles
和eye
将解决这个问题。
Hi,
From the screenshot you posted, I think the warning is because the bone head-control
belongs to a skin, but the attachments goggles
and eye
do not. This means that it is consistent with the following described in the user guide:
the attachment is in a skin and has weights for a bone that is in a skin, but not in the attachment's skin.
Removing the head-control
from the skin or adding the attachments goggles
and eye
to the skin would solve the problem.
我开始的理解是 goggles 和 eye 不属于任何皮肤。现在我仔细思考了一下,这两个附件属于默认皮肤,对吗。如果一个附件没有指定任何皮肤占位符,则该附件属于默认皮肤?是这样吗?
如果一个附件没有指定任何皮肤占位符,则该附件属于默认皮肤?
是的,这在运行时文档中有解释。:
Runtime Skins - Spine Runtimes Guide
骨架数据中定义的所有附件都放在皮肤中。不在Spine编辑器皮肤中的附件将在运行时显示在名称为默认的皮肤中,皮肤中的名称与附件名称相同。
如果一个附件没有指定任何皮肤占位符,则该附件属于默认皮肤?
Yes. This is explained in the runtime documentation:
Runtime Skins - Spine Runtimes Guide
All attachments defined in the skeleton data are placed in a skin. Attachments that were not in a skin in the Spine editor will appear at runtime in a skin named default, where the name in the skin is the same as the attachment's name.