VolumetricLighting/Assets/VolumetricFog/Editor/VolumetricFogEditor.cs

18 lines
351 B
C#
Raw Permalink Normal View History

using UnityEditor;
[CustomEditor(typeof(VolumetricFog))]
[CanEditMultipleObjects]
public class VolumetricFogEditor : Editor
{
override public void OnInspectorGUI()
{
if (!VolumetricFog.CheckSupport())
{
EditorGUILayout.HelpBox(VolumetricFog.GetUnsupportedErrorMessage(), MessageType.Error);
return;
}
DrawDefaultInspector();
}
}