mirror of
				https://github.com/maxartz15/VolumetricLighting.git
				synced 2025-10-30 21:15:52 +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();
 | |
| 	}
 | |
| }
 |