Animating a Panel,Animating a panel

Hello,
I have a panel on the right side of the screen that shows and hides on click of a button. How could I make it so when you click the button to show the panel it slides in from the right, and when you click the button to hide it slides back off out of sight? thanks!,Hello,
I have a panel on the right side of the scene that shows and hides on click of a button. How could I make it so the panel will slide in from the right when you click the button to show, and slide back off when you click the button to hide? Thank you

In unity, there is a component called the animator. To edit the contents of this component on your canvas, go to Window → Animation → and select the Animation Window. (You may also need the animator window open as well). Select the panel and in the Animation Window, there will now be a button that says create as well as text saying to begin animating the panel, click create etc.

Once you have created your two animation clips, sliding in and sliding out, you can head into the animator window and link up the animations in a way so that they play at certain conditions. If youve never worked with the animator before, I suggest you watch some tutorials, as from here on, it might be difficult to get your head around my answer without some understanding of how conditions and triggers and states work. Hope this helps!