Permalink
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (13 sloc) 341 Bytes
using UnityEngine;
namespace HoloToolkitExtensions.Animation
{
public class LookatCamera : MonoBehaviour
{
public float RotateAngle = 180f;
void Update()
{
gameObject.transform.LookAt(Camera.main.transform);
gameObject.transform.Rotate(Vector3.up, RotateAngle);
}
}
}