using System.Collections; using System.Collections.Generic; using UnityEngine; public class IPG_MAS1_CanvasJuegoBuscarCamara : MonoBehaviour { Canvas canvas; // Start is called before the first frame update void Start() { canvas = GetComponent(); } // Update is called once per frame void Update() { if (canvas.worldCamera == null) { canvas.worldCamera = GameObject.Find("MAS_camera").GetComponent(); } } }