- Home /
uitoolkit slide out menu? (made for mobile but taking all ideas, except for OnGUI calls)
I am curious how i would go about making a UiToolkit slide out menu, and then having the buttons be dynamic? I cannot destroy the buttons as they arent objects, so the Destroy() unity method gives an error, and since they arent objects i thus cannot parent them. They can only be created at runtime, so i am kind of stumped.
How would i go about doing this?
Here is thier unity forums post: http://forum.unity3d.com/threads/87917-Prime31-UIToolkit-Multi-Resolution-GUI-Solution-Ready-for-Use...and-it-s-free
Anybody know? SO$$anonymous$$EBODY has to know an example or even where to begin. I don't and am stumped.....
Answer by paulStapelberg · Jun 01, 2012 at 02:05 PM
Hey, I know it's been a while since you asked but I have been using UIToolkit for a couple days so I might be able to help a bit if you still need it. Just to clarify, what do you mean by a slide out menu? A menu that slides on screen from the side of a screen? If that's what you want then I may be able to help.
You will want to put all of you buttons,toggles, etc for your main menu in a container such as UIHorizontalLayout. Then you could simple create the layout/panel off screen and slide it onto the screen using one of the animation methods like positionTo().
Does that help at all?