Harald

We are happy to announce support for Unity sprite masks and Unity UI rect masks in our spine-unity runtime! Check out the details in this blog post:
Blog: Unity SpriteMask and RectMask2D support

SpriteMask:


RectMask2D:
User avatar
Harald

Harri
  • Posts: 953

vzlomvl

Looks amazing. It's time to change the UI from Mash to RectMask2d. :rock:
User avatar
vzlomvl
  • Posts: 57

altaf navalur

Hi,
I am trying to achieve the mask effect, but not able to get masking to work. Do you have any sample project or step by step instruction on how to setup the hierarchy in Unity for masking to work?

Regards,
Altaf
altaf navalur
  • Posts: 2

Harald

I have now added an additional example scene SpriteMask and RectMask2D to the spine-unity unitypackage under Spine Examples/Other Examples.

You can download it here as usual:
Spine Unity Download

Please let us know if it helped you with resolving your problem.

In general: please note that RectMask2D is for UI elements (SkeletonGraphic) and SpriteMask for non-UI elements (SkeletonAnimation and SkeletonMecanim). This is general behaviour in Unity, treating UI elements differently from non-UI elements such as Sprites.
User avatar
Harald

Harri
  • Posts: 953

altaf navalur

Hello Herald,
The example project helped me achieve what I wanted. Thank you!

Regards,
Altaf
altaf navalur
  • Posts: 2

Harald

Great to hear, thanks for letting us know!
User avatar
Harald

Harri
  • Posts: 953


Return to Unity