It's 2am and I'm a huge noob

The answer is probably staring me in the face but I can’t figure out this simple task, nor can I find the appropriate information online.

All I need to do is animate a camera doing a 360 pan around an object for 10 or 20 seconds- that’s all.

Help greatly appreciated :sunglasses:

I think, doing an animation clip with the animation window and a script that uses : Unity - Scripting API: Transform.LookAt should do the trick?

Easiest way I can think of is to parent the camera to an empty game object that is in the same spot as the object you wish to rotate around then use something like this script

using UnityEngine;
using System.Collections;

public class RotateAround : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	 transform.Rotate(Vector3.up * Time.deltaTime*5, Space.World);
	}
}

Just change *5 if you want it faster or slower.

RotateAround already exists in the engine :