Files
Fishing2/Assets/MicroVerse-Presets/Scripts/MicroVerse Presets 1/Editor/Time of Day/TimeOfDayEditor.cs
2025-06-09 23:23:13 +08:00

20 lines
720 B
C#

#if USING_HDRP
using UnityEditor;
using UnityEngine;
namespace Rowlan.MicroVerse.Presets
{
[ExecuteInEditMode]
[CustomEditor(typeof(TimeOfDay))]
public class TimeOfDayEditor : LightAnchorEditor
{
private static GUIContent helpContent = new GUIContent("This is a wrapper for Unity's own Light Anchor class. It maps the transform to the directional light's transform. Unity's Light Anchor needs to be a direct component in the directional light. It would be nice if they could make this a global setting.");
public override void OnInspectorGUI()
{
EditorGUILayout.HelpBox(helpContent.text, MessageType.Info);
base.OnInspectorGUI();
}
}
}
#endif