r2mods/ilspy_dump/ror2_csproj/RenderDepth.cs

11 lines
191 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine;
[ExecuteInEditMode]
public class RenderDepth : MonoBehaviour
{
private void OnEnable()
{
GetComponent<Camera>().depthTextureMode = DepthTextureMode.DepthNormals;
}
}