下記、ソースコードを対象のゲームオブジェクトにアタッチするとシーンの中心(0,0,0)をみながら
using UnityEngine;
using System.Collections;
public class MyCamera : MonoBehaviour {
private Transform myTransform;
void Awake ()
{
myTransform = transform;
}
void Update ()
{
Vector3 relativePos = Vector3.zero - myTransform.position;
Quaternion rotation = Quaternion.LookRotation(relativePos);
myTransform.rotation = rotation;
myTransform.RotateAround (
Vector3.zero, Vector3.up,
10.0f * Time.deltaTime
);
}
}