using System.Collections; using System.Collections.Generic; using UnityEngine; public class MountCanvasCamera : MonoBehaviour { void Awake() { Canvas canvas = GetComponent(); if (null != canvas) { canvas.worldCamera = CameraManager.uiCamera; } } }