• 中文
  • 【Help】skeletonAnimationMulti 如何设置改变颜色?

Related Discussions
...

我的项目一个角色有多套骨架
我使用的是 skeletonAnimationMulti.cs 脚本控制动画的切换,但是我不知道如何改变角色的颜色(例如:被攻击变红),文档的方法用不了,skeletonAnimationMulti 没有MeshRender组件。

您可以通过 skeletonAnimationMulti.CurrentSkeletonAnimation 获取当前活动的 SkeletonAnimation。 然后您可以照常应用您的修改。

此外,我们刚刚添加了一个 getter 属性 skeletonAnimationMulti.SkeletonAnimations 来访问所有 SkeletonAnimation 实例的列表,以防您想要修改所有实例而不仅仅是活动的实例。

现在有一个更新的 4.1 spine-unity 包可供下载,其中包含以下内容:
spine-unity Download


You can get the currently active SkeletonAnimation via skeletonAnimationMulti.CurrentSkeletonAnimation. Then you can apply your modifications as usual.

Also we have just added a getter property skeletonAnimationMulti.SkeletonAnimations to access the list of all SkeletonAnimation instances, in case you want to modify all instances instead of only the active one.

There is now an updated 4.1 spine-unity package available for download which contains this addition:
spine-unity Download

@Harald Thank you very much!you are so nice!
your suggestion solved my problem. and also provides additional getter properties :heart:

感谢您的客气话,很高兴它有所帮助! :nerd:
Thanks for your kind words, glad it helped!