x


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

more ▼

asked Jan 25 '12 at 07:27 PM

1337GameDev gravatar image

1337GameDev
526 45 51 55

Anybody know? SOMEBODY has to know an example or even where to begin. I don't and am stumped.....

Jan 27 '12 at 11:23 PM 1337GameDev
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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?

more ▼

answered Jun 01 '12 at 02:05 PM

paulStapelberg gravatar image

paulStapelberg
15 1

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x784
x437
x116
x17
x1

asked: Jan 25 '12 at 07:27 PM

Seen: 1318 times

Last Updated: Jun 01 '12 at 02:05 PM