Streamingle_URP/Assets/NiloToonURP/Editor/Volume/NiloToonShadowControlVolumeEditor.cs

31 lines
1.1 KiB
C#

using System.Collections.Generic;
using NiloToon.NiloToonURP;
using UnityEditor;
using UnityEditor.Rendering;
namespace NiloToon.NiloToonURP
{
[CanEditMultipleObjects]
#if UNITY_2022_2_OR_NEWER
[CustomEditor(typeof(NiloToonShadowControlVolume))]
#else
[VolumeComponentEditor(typeof(NiloToonShadowControlVolume))]
#endif
public class NiloToonShadowControlVolumeEditor : NiloToonVolumeComponentEditor<NiloToonShadowControlVolume>
{
// Override GetHelpBoxContent to provide specific help box content
protected override List<string> GetHelpBoxContent()
{
List<string> messages = new List<string>();
messages.Add(
"- Great for controlling NiloToon characters' shadow results (e.g., shadow tint color)\n" +
"- When overridden, uses settings from here instead of NiloToonAllInOneRendererFeature\n" +
"- When not overridden, uses NiloToonAllInOneRendererFeature's settings");
messages.Add(NonPostProcess_MayAffectPerformance_Message);
return messages;
}
}
}