mirror of
https://github.com/maxartz15/VolumetricLighting.git
synced 2024-11-10 01:02:55 +01:00
18 lines
351 B
C#
18 lines
351 B
C#
|
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();
|
|||
|
}
|
|||
|
}
|