FixMobileDepth.cs 203 B

12345678910
  1. using UnityEngine;
  2. [ExecuteInEditMode]
  3. public class FixMobileDepth : MonoBehaviour
  4. {
  5. private void Awake()
  6. {
  7. GetComponent<Camera>().depthTextureMode |= DepthTextureMode.Depth;
  8. }
  9. }