Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个问题,我的动画只有一侧被着色。
我正在使用以下代码:
teamCrowdNoneColor.skeleton.FindSlot ("torso").SetColor (teamNoneColor); teamCrowdNoneColor.skeleton.FindSlot ("sleeve").SetColor (teamNoneColor);
您可以从下图中看到袖子或手臂没有左右。关于如何解决这个问题的任何想法?
API 似乎不支持这一点。要么修改骨架数据,使其具有不同的左右插槽,要么直接访问其字段:
foreach (Slot slot in teamCrowdNoneColor.skeleton.slots) { if (slot.data.name == "sleeve") slot.SetColor(teamNoneColor); }