Is it possible to create a GUI button that will play an animation (something appears on a terrain - like a bunch of buildings) and then the second click would reverse the animation (or would call a second animation up that would remove the objects from the terrain). Current script being used - and failing - is:
asked Oct 13 '10 at 02:21 PM
Here's an example I used for a door (with trigger). The tricky thing was that it continued playing backwards from 0. That's why this is a bit complicated: Basically, you can reverse the animation with animation["animationName"].speed = -1.0;.
You should be able to do something similar with GUI-Elements. I hope this helps!