Files
2026-03-04 10:03:45 +08:00

23 lines
403 B
C#

using UnityEngine;
namespace AQUAS
{
[AddComponentMenu("AQUAS/Essentials/AQUAS Camera")]
[RequireComponent(typeof(Camera))]
public class AQUAS_Camera : MonoBehaviour
{
private void Start()
{
Set();
}
private void Set()
{
if (GetComponent<Camera>().depthTextureMode != DepthTextureMode.Depth)
{
GetComponent<Camera>().depthTextureMode = DepthTextureMode.Depth;
}
}
}
}