- Home /
How to i make it use animation on camera only after clicking?
This is the script i created and cant find out how to make animation play only for the main camera and not the words.
i dont know what's your trouble... be more specific when explaining your error... besides, you never set any of those booleans to true, so, how do you expect them to play anything, when they're all false.
When i add them, i will click the check box to make it true. The main menu i am trying to make turn the camera by the animation ins$$anonymous$$d of going to a new scene. such as options, the camera will move to the options menu. I need help on how to make the camera do the animations when you click on the words.
Answer by phxvyper · Jun 10, 2013 at 06:01 AM
If you want the animation to play after a mouse click occurs, the code will be similar to this:
//If left mouse button clicked, play animation
if (Input.GetMouseButtonDown(0))
{
animation.Play(/*Whatever your animation is, goes here.*/);
}
Your answer
Follow this Question
Related Questions
Loading multiple levels error 0 Answers
A node in a childnode? 1 Answer
Loadlevel and buttons... 2 Answers
Problem Resolution 2 Answers