13 lines
327 B
C#
13 lines
327 B
C#
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
public class CameraDepthEnable : MonoBehaviour
|
|||
|
{
|
|||
|
private void Start()
|
|||
|
{
|
|||
|
var currentCamera = GetComponent<Camera>();
|
|||
|
if (currentCamera != null)
|
|||
|
currentCamera.depthTextureMode = DepthTextureMode.Depth;
|
|||
|
}
|
|||
|
}
|