Update Ok figured it out! For anyone else running into this issue, just play with the Top\ Bottom rect transform until the skeleton graphic doesn't pop\disappear!
Thanks for the help Harald :nerd:
Harald wroteThat's some nice music in your reproduction video! Including the mouse cursor in the screen capture would be less surprising BTW π.
Please note that on the blog post that you referenced we wrote the following on purpose:
Unity UI - Rect masks and SkeletonGraphic
The shaders used by SkeletonGraphic now support Unity's RectMask2D component.
There is also an example scene Spine Examples/Other Examples/SpriteMask and RectMask2D.unity
which shows how to use the components. In the example scene a description text also reads:
Use SpriteMasks with SkeletonAnimation and SkeletonMecanim (Non-UI Skeletons).
Use RectMask2D for SkeletonGraphic (UI).
So in short: you are combining the wrong components. If you are using SkeletonAnimation
, you have to use a SpriteMask
component instead of RectMask2D
. RectMask2D
is for UI components. π
Hi Harald,
If you're interested the music if Danimal Cannon. https://danimalcannon.bandcamp.com/
He does gameboy metal\rock music.
Thanks for the reply. I downloaded the examples you mentioned and have gotten some progress. But there seems to be a weird "instant disappear" when the mesh reaches a certain edge of the mask. Do you know whats causing it? :wounded:
If I copy the Rect Transform from the examples then it doesn't pop. But I can't figure out why that is fixing it.. and also it's not a solution . :bigeyed:
0:52 = popping\ disappearing of mesh
0:58 = copying the exact Top\ Bottom values from example and mesh doesn't pop\disappear