秋老虎

想请教一下,如何在spine运行库3.7版本中,添加多图集的spine动画到UGUI上渲染显示。现在直接添加上去,运行时就是很多图片乱闪。尝试过修改SkeletonGraphic,但运行时子节点下的Renderer闪烁,造成会有白方块闪烁
Bu mesaja eklenen dosyaları görüntülemek için gerekli yetkilere sahip değilsiniz.
秋老虎
  • Mesajlar: 2

Harald

不幸的是,通过 Inspector 设置“Advanced - Multiple Canvas Renderers”,已经在 Spine-unity 3.8 版中正式添加了对SkeletonGraphic的多个图集纹理的支持。

也许您可能会考虑更改图集包装,使其适合单个图集页面,如下所述:
spine-unity Runtime Documentation: 高级 单页Texture Atlas文件的导出和SkeletonGraphic

Pharan 为spine-unity 3.6 提供了一个非官方组件,也许可以稍作修改:
SkeletonGraphic(UI) Problem
请注意,SkeletonGraphic 不兼容多个纹理,因为基础组件UnityEngine.UI.MaskableGraphic不兼容多个纹理。

您可以在此处找到 SkeletonGraphic 的实验性多对象版本:http://esotericsoftware.com/files/runtimes/unity/spine-unity-experimental-SkeletonGraphicMultiObject-3_6-2018-04-19.unitypackage
您必须通过 GameObject>Create>Spine>SkeletonGraphic MultiObject 创建一个新对象,因为它不会挂接到拖放界面中。
-----
Unfortunately support for multiple atlas textures at SkeletonGraphic has officially been added in spine-unity version 3.8, via Inspector setting Advanced - Multiple Canvas Renderers.

Perhaps you might consider changing atlas packing so that it fits on a single atlas page, as described here:
spine-unity Runtime Documentation: 高级 单页Texture Atlas文件的导出和SkeletonGraphic

There is an unofficial component provided by Pharan for spine-unity 3.6, perhaps this could work with slight adaptations:
SkeletonGraphic(UI) Problem
Note that SkeletonGraphic is not compatible with multiple textures because the base component "UnityEngine.UI.MaskableGraphic" is not compatible with multiple textures.

You can find the experimental multi-object version of SkeletonGraphic here: http://esotericsoftware.com/files/runtimes/unity/spine-unity-experimental-SkeletonGraphicMultiObject-3_6-2018-04-19.unitypackage
You'll have to go through GameObject>Create>Spine>SkeletonGraphic MultiObject to create a new object since it does not hook into the drag and drop interface.
Kullanıcı avatarı
Harald

Harri
  • Mesajlar: 4002

秋老虎

感谢,能实现我需要效果了
秋老虎
  • Mesajlar: 2

Harald

感谢您回复我们。 很高兴你已经想通了。
Thanks for getting back to us. Glad you've figured it out.
Kullanıcı avatarı
Harald

Harri
  • Mesajlar: 4002


Dön 中国Spine用户