您使用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