using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace Funly.SkyStudio { [RequireComponent(typeof(RawImage))] public class LoadOverheadDepthTexture : MonoBehaviour { WeatherDepthCamera m_RainCamera; RawImage m_Image; // Use this for initialization void Start() { m_RainCamera = FindObjectOfType(); m_Image = GetComponent(); } private void Update() { m_Image.texture = m_RainCamera.overheadDepthTexture; } } }