您可以设置各个插槽的插槽颜色:
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?