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:
사용자 아바타
Harald

Harri
  • 전체글: 953

vzlomvl

Looks amazing. It's time to change the UI from Mash to RectMask2d. :rock:
사용자 아바타
vzlomvl
  • 전체글: 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
  • 전체글: 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.
사용자 아바타
Harald

Harri
  • 전체글: 953

altaf navalur

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

Regards,
Altaf
altaf navalur
  • 전체글: 2

Harald

Great to hear, thanks for letting us know!
사용자 아바타
Harald

Harri
  • 전체글: 953


다시 돌아감: Unity