mirror of
https://github.com/maxartz15/VolumetricLighting.git
synced 2024-11-14 02:35:36 +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();
|
|
}
|
|
}
|