- Home /
GUI animated menus
Is there any programs or scripts out there that anyone know's of that can make animated GUI interfaces like with animated menus, click on a button and the new screen slides or fades in something like that. Preferably in the Javascript language.
Thank you Durante Productions.
You should first learn how to script then make the menu...This is really easy script.
I do know how to script and i have a scripted menu but its to plain for me with the simple boxes and barely any color
Answer by gfr · Dec 09, 2011 at 11:32 PM
Take a look at the scripts in the community wiki.
This is a nice response but i was hopeing for something a little more in depth....I greatly App. your answer though.
Your question is a little unspecific for that, at least for me. The wiki includes fade-in and slide-in scripts though, so you can try those out and come back with a more specific question if you get stuck with something.
HERE is an article on TheGameContriver which shows you how to create an animated menu with Unity 4.6
Answer by dentedpixel · Jan 30, 2013 at 10:03 PM
The tweening engine LeanTween (free) has some good animating options for GUI elements.
Here is an example of scaling a button on click:
private var bRect:LTRect = new LTRect( 0, 0, 100, 50 );
function OnGUI(){
if(GUI.Button(bRect.rect, “Scale”)){
LeanTween.scale( bRect, Vector2(bRect.rect.width, bRect.rect.height) * 1.3, 0.25, {"ease":LeanTween.easeOutQuad} );
}
}
Also here is an article that gives more advanced examples.