How to cover buttons with game objects?

I’m trying to make a transition for buttons where an object comes on screen and when it leaves, a button is there. How do I make the game object cover the button?

can u show me what u want with screen shots?