using UnityEngine; public class CameraFinderForCanvas : MonoBehaviour { // Start is called once before the first execution of Update after the MonoBehaviour is created void Start() { GetComponent().worldCamera = Camera.main; } // Update is called once per frame void Update() { } }