• Unity
  • Any way to mask skeleton with multiple textures?

Hi,

I wonder if there is anyway (and guide) how to mask a spine skeleton, that uses multiple texture files?
So far I can see that a) Sprite Mask doesn't work with Spine skeleton; b) UI.Mask works, but UI skeleton doesn't work if it has multiple texture files. Any workaround for this?

Right now I have a visual generator for units and I want to 'frame' & cut the face / helmet of this unit into a slot for further use

Related Discussions
...
  • 編集済み
LegioXV wrote

a) Sprite Mask doesn't work with Spine skeleton

This should work, we have introduced SpriteMask support for SkeletonAnimation and SkeletonMecanim in this blog post:
Blog: Unity SpriteMask and RectMask2D support

Are you encountering problems in this regard? If yes, are you using a recent runtime version?

1年 後

Hi, i have same problem

i use new 3.8 sdk and Unity 2019.4.0
When I enable checkbox Multiple Canvas Renderers - mask does't work

I was attach some screenshots


Thanks for the clarification and for reporting! We just noticed that while the normal Mask component was working with Multiple CanvasRenderers enabled, the RectMask2D was not.

We just fixed this issue, a new 3.8 unitypackage can be downloaded here as usual:
Spine Unity Download
Please clear the existing child Renderer GameObjects, new ones will be created with additional RawImage components that have a maskable parameter which is set according to the SkeletonGraphic.maskable value.

For reference: this issue has been tracked under this ticket:
https://github.com/EsotericSoftware/spine-runtimes/issues/1802

All works! Thanx!

Glad to hear, thanks for letting us know!