2D objects in each other

Hi there,

I want to make a game where you have to push a button, but my object are 2d and what I want is that the button on push it goes down into the box in animator, but i don’t know how to that with 2d objects? Does somebody know this …

Thanks Sam

Look into sprite masks.

And how works that???

https://docs.unity3d.com/Manual/class-SpriteMask.html

Thanks!