using UnityEngine; [ExecuteInEditMode] public class RenderDepth : MonoBehaviour { private void OnEnable() { GetComponent().depthTextureMode = DepthTextureMode.DepthNormals; } }