using UnityEngine; [ExecuteInEditMode] public class FixMobileDepth : MonoBehaviour { private void Awake() { GetComponent().depthTextureMode |= DepthTextureMode.Depth; } }