Files
Fishing2/Assets/ThirdParty/LuxWater/Scripts/Editor/LuxWater_CameraDepthModeEditor.cs
2025-05-10 12:49:47 +08:00

24 lines
885 B
C#

using UnityEngine;
using System.Collections;
using UnityEditor;
namespace LuxWater {
[CustomEditor(typeof(LuxWater_CameraDepthMode))]
public class LuxWater_CameraDepthModeEditor : Editor {
public override void OnInspectorGUI() {
LuxWater_CameraDepthMode myTarget = (LuxWater_CameraDepthMode)target;
DrawDefaultInspector();
if(myTarget.GrabDepthTexture) {
//var testMat = new Material( Shader.Find("Custom/metalDepth"));
//bool isCorrect = testMat.IsKeywordEnabled("LUXWATERMETALDEFERRED");
if(myTarget.ShowShaderWarning) {
EditorGUILayout.HelpBox("Please make sure that you have changed the WaterSurface Shader according to the docs.", MessageType.Warning);
if (GUILayout.Button("Hide Messsgae")) {
myTarget.ShowShaderWarning = false;
}
}
}
}
}
}