Files
2025-11-30 08:35:03 +02:00

33 lines
558 B
C#

using System;
using UnityEditor;
using UnityEngine;
namespace Needle.Engine
{
[AddComponentMenu("")]
internal class Fog : MonoBehaviour
{
public FogMode mode;
public Color color;
public float density;
public float near;
public float far;
}
#if UNITY_EDITOR
[CustomEditor(typeof(Fog))]
internal class FogEditor : Editor
{
private void OnEnable()
{
EditorApplication.delayCall += OnDelayCall;
}
private void OnDelayCall()
{
if (!EditorUtility.IsPersistent(this.target))
DestroyImmediate(this.target);
}
}
#endif
}