r2mods/ilspy_dump/ror2_csproj/RenderDepth.cs

11 lines
191 B
C#

using UnityEngine;
[ExecuteInEditMode]
public class RenderDepth : MonoBehaviour
{
private void OnEnable()
{
GetComponent<Camera>().depthTextureMode = DepthTextureMode.DepthNormals;
}
}