你好, 在spine UE4 的使用中看到可以对spine控件的颜色进行修改,但是如果用addskins同时显示了多个skins,通过这个方法会对所有skins同时修改颜色。请问有方法可以通过C++代码只对某一个skin的颜色进行修改吗,而其他的skins颜色不做修改, 比如只在head/brown上再加上一层红色,而同时显示的leg-front的颜色不发生变化? 谢谢
UE4 UI, 对spine控件的皮肤颜色进行更改
- Bearbeitet
您可以设置各个插槽的插槽颜色:
Slot color
您可以通过skeleton.slots
遍历所有插槽:
Skeleton slots
另外,您可以浏览 Skin 的每个 Attachment ,然后设置“附件”颜色,您需要将其强制转换为 RegionAttachment 或 MeshAttachment 以访问颜色:
RegionAttachment color
MeshAttachment color
这样可以解决您的问题吗?
You can set the Slot color of individual slots:
Slot color
You can iterate over all slots via skeleton.slots
:
Skeleton slots
Alternatively, you could go through the Attachment of a Skin and then set the Attachment color, you will need to cast it to RegionAttachment or MeshAttachment to access the color however:
RegionAttachment color
MeshAttachment color
Does this resolve your question?
thanks, let's try