11 lines
184 B
C#
11 lines
184 B
C#
using UnityEngine;
|
|
|
|
[ExecuteInEditMode]
|
|
public class DepthFix : MonoBehaviour
|
|
{
|
|
private void OnWillRenderObject()
|
|
{
|
|
Camera.current.depthTextureMode |= DepthTextureMode.Depth;
|
|
}
|
|
}
|