using System.Collections; using System.Collections.Generic; using UnityEngine; public class CanvasToView : MonoBehaviour { Camera mainCam; Canvas canvas; void Awake() { mainCam = Camera.main; canvas = GetComponent(); } private void Update() { canvas.transform.LookAt(mainCam.transform.position); } }