GUIFly

Author: Jonathan Czeck (aarku)

Description
This script can be used ot make your GUI objects fly in and off the screen pleasingly. Simply use GameObject.SendMessage to tell all your GUI objects to move when you'd like them to.

Usage
Place this script on a GameObject. Adjust m_InPosition to be where you want the object located when "in" and similarly for m_OutPosition. If you reset the script, m_InPosition will update.

From another script, use GameObject.SendMessage to send a Fly message with a boolean variable indicating whether it should fly towards the in or out position.

Here is an example JavaScript. Note that you could also use Boo or C#.