- Modifié
Clipping masks never work consistently.
I can never get clipping masks to work the same way twice. For some reason 20% of the time when I bring in the skeletons into Spine, the mask just doesnt apply, or applies to some assets and not others, or if there are multiple masks in the skeleton, SOME of the masks apply and not others.
Here is an example set up.
In this picture, the blue part is properly clearly masked into the red part.
In Unity, the mask just doesnt apply. The blue part is completely unmasked, its a huge square. Nothing I do makes it masked.
The mask MUST be bellow the red part and MUST be above the green part, and ONLY masking off that blue part. No other part can be affected by the mask. If I move around the order of the mask, say moving the blue part and mask to the top of the draw order, THEN the mask works, but ONLY if I set the mask's target to itself instead of the blue part. It doesnt make any sense.
In other files, any random combination of different arangement of slot orders works or doesnt work, its an exercise in insanity trying to understand this completely logic defying when-unity-decies-to-apply-the-mask-or-not.
Could you send us a zipped package of your project files (the .spine
file and the referenced images) plus the exported files (that you import in Unity) to contact@esotericsoftware.com? Then we can have a look at this issue.
I have an issue with a mask working correctly in the setup, but doesn't work when I want to animate. The mask feature could definitely use some work to make it more user-friendly/clear.
Does it not work as desired in the Spine Editor, or in Unity? Which version of Spine (and which version of spine-unity respectively) are you using?
Hoghren a écritThe mask feature could definitely use some work to make it more user-friendly/clear.
Please help us help you. If you provide only minimal information, we have a hard time guessing what is not as you expect it to be. Please provide at least some description of what you expect, and what you see instead. Some screenshots would help a lot.
Sorry for the short post, I was just looking for answers to fix my issue asap and a bit frustrated. It was in the Spine Editor, I still have no idea what went wrong with the mask, but I just restarted Spine and it worked correctly again.
For me personally, It would be nice to put the mask directly on a slot instead of doing it in the draw order, something like in Photoshop. My lazy suggestion, adding a mask makes an automatic start slot that asks which object(s) needs to be masked, let's you draw your area and automatically ends it.
Hope this is a bit more helpful.