Author Topic: How to make a slide in panel?  (Read 2600 times)

infrid

  • Guest
How to make a slide in panel?
« on: June 11, 2013, 07:34:47 PM »
I'm trying to put 3 buttons vertically into a panel, and make it appear by sliding out from the left side of the screen, then hide again by making it slide back out.

I can't for the life of me work out how to do it.
Problems:
1. My panels are always the size of my root, so I can't work out how to make a panel that is only 1/5th of the screen in width,
2. Becuase of that, the position zero for my panel is the center of the screen, and this ui runs on iphones and ipads, and iphone 5's so that won't work.
3. I tried using an anchor, with a sprite, or something and putting on the left them moving the things inside of that. I think that's ultimately the approach I want; but I don't know how to get it working right (It screws up my buttons and gives errors about nesting ui widgets.
 

infrid

  • Guest
Re: How to make a slide in panel?
« Reply #1 on: June 11, 2013, 08:00:48 PM »
Ok. I solved this. I had to use a simple Game Object, and set the anchor on that, then put everything in that..