您使用SkeletonGraphic
遇到什么问题?
What problem is it that you encountered with SkeletonGraphic
?
通常,您可以像在SkeletonAnimation
上那样在SkeletonGraphic
上更改附件和外观。 它提供相同的skeletonGraphic.Skeleton
属性。
In general, you can change Attachments and Skins on SkeletonGraphic
as you would at SkeletonAnimation
. It offers the same skeletonGraphic.Skeleton
property.
请注意,CanvasRenderer
目前仅将SkeletonGraphic
限制为单一纹理,因此在关闭一些附件后,您可能需要通过skin.GetRepackedSkin()
重新包装皮肤。
请查看“脊柱示例”中包含的MixAndMatchGraphic.cs
示例脚本:
spine-runtimes/MixAndMatchGraphic.cs at 3.8
Please note that SkeletonGraphic
is currently limited to a single texture by CanvasRenderer
, so you may need to repack the skin via skin.GetRepackedSkin(..)
after switching out some attachments.
Please have a look at the MixAndMatchGraphic.cs
example script included in the Spine Examples
:
spine-runtimes/MixAndMatchGraphic.cs at 3.8