- Home /
Animate a Camera after Clicking an Object
Trying to figure out how to play an animation on my camera after clicking an object in my scene.
Click "MyBox" then have the Camera play a "Zoom" animation setup in its animator "Any State--->Zoom--->Exit"
I know it involves using a raycast, then colliding with an object (aka MyBox), then referencing the camera.... just not entirely sure how this is done in C#.
Any help would be GREATLY appreciated.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220611231346im_/https://answers.unity.com/themes/thub/images/avi.jpg)