- Home /
Sprite Mask seems to override Sorting Layer preferences...
I am using a Sprite Mask to clarify the space where I want a looping animation to be visible. To be clear I am using a script to gently nudge the animation along the x axis, and then it resets when the transform.position.x reaches a certain point. The sprite mask shows the area where I want the animation to be seen, and the sprite being animated has been to set to SHOW INSIDE SPRITE MASK. It works. My intention is for this to be the background of a menu. When I add a button to the menu, I would like the animation to be obscured by the button, but instead the animation is visible throughout the buttons. No matter how I arrange the sorting layers or the parent-child hierarchy it seems the Sprite Mask overrides my preferences and always shows the animation. I've tried making the animation a child of the sprite mask or vice versa, with no luck. Is there something obvious I might be missing?
Did u ever figure out this problem? I have a similar question.