- Home /
Click a button to slide out a gui toolbar / panel - Moving a GUILayout?
I'm trying to create a toggle-out toolbar, similar to the Wacom software (click a small wedge-button on the side of your screen, and a longer toolbar menu will expand).
GUI and GUILayout do not seem to have the visible or transform options, so I am wondering how you can slide out a guitoolbar using these...
Answer by _Petroz · Dec 28, 2010 at 08:35 AM
GUILayout and and GUIToolBar both have a 'position' Rect which is the transform in screen coordinates.
You can use Mathf.Lerp to reposition the GUI Elements.
Answer by slkjdfv · Dec 28, 2010 at 08:50 PM
what you can do is set your windows width to 0 to start with and when you click on your wedge in game have the window width expand. and when it reaches its max width have the windows menu items appear.
Your answer
Follow this Question
Related Questions
Horizontal Slider with Labels 3 Answers
GUILayout Context Menu on Right Click - Not Working! 1 Answer
Sideways textfield 1 Answer
Can I use the new GUI system with instantiated prefabs? 1 Answer
Passing a variable through the main menu 2 Answers