How to palce the camera in the back-upper of a object?

Hello, everyone!

I am working with a project, but I have some problem now.

In the simple scene, there just three cubes, which are never move!! never move! And at the beginning, the main camera looks at somewhere else. After some time, I want the camera looks at one of the cubes locating in the back upper place of it.

I have try to use the function transform.LookAt(target), but it’s only rotate the camera, not change the position of the camera.

How can I place the camera in the back upper place of the cube??

You can set an animation to the camera and edit the animation to change the transform.position component of the camera to your preferred position. I hope that helps, good luck.