I am making a menu for my game. Before the menu appears in the game, I made an animation to the camera. How can I make the mouse cursor appear after the camera finishes its animation?
I forgot to say that I am showing a custom texture cursor by using this script:
So what do I write instead of showCursor?
Just make sure the animation is set to ClampForever wrap mode.
answered Mar 28 '11 at 11:09 AM
Put this on your camera, and edit the animation name to your animation name.
Here's a textual step explaination of what goes on.
I added a static variable called showCursor to your existing script and in OnGUI, if it is not true we exit the function so we don't render any gui.