Play animator

I have animated a camera in the animation window to go from point A to point B. The original position is point B. I wish for the camera to wait at point A until the user clicks and then play animation to en up at point B.

My three questions are:

  1. How do I keep the animation from playing automatically?

  2. How do I have the camera start at point A in the animation?

  3. How do I trigger the animation itself? For instance, there is animation.Play() - what is the equivalent for animator?

Thank you - I am in the debt of anyone who answers :slight_smile:

You should probably set up a couple of nodes in the Animator window, one with the “stays at point A” animation and one with the animation where it moves. Create a trigger parameter called “Move”, and in your script, call animator.SetTrigger(“Move”). Finally, create a Transition from the first state to the second state with the condition on it being the trigger parameter you set up.

Excellent - I feel this is close to the answer I need

What do you mean by nodes? States? And if so how do I set that state to have a different animation? Clicking on my camera and trying to animate shows the keys from the first animation I made.

For now I have found a weird solution - just for any future googlers who come across this.
I ended up making a play trigger from the any state to my animation. At start in the script I set StartPlayback which seemed to freeze it. And then when I want to play it, use StopPlayback. …which seems opposite?