Files
UIEffect/Packages/src/Runtime/Timeline/ToneIntensityTrack.cs
T
mob-sakai 742a5cd8dc feat: timeline package support
Tracks for changing properties have been added. Also, `ControlTrack` enables `UIEffect` only within the clip.

close #347
2025-06-09 18:13:20 +09:00

26 lines
668 B
C#

#if TIMELINE_ENABLE
using System.ComponentModel;
using UnityEngine.Timeline;
using Coffee.UIEffects.Timeline;
namespace Coffee.UIEffects
{
[FloatClipUsage(0f, 1f)]
[TrackClipType(typeof(UIEffectFloatClip))]
[DisplayName("UIEffect Tracks/Tone Intensity Track")]
public class ToneIntensityTrack : UIEffectTrack<ToneIntensityMixer>
{
protected override string fieldName => "m_ToneIntensity";
}
public class ToneIntensityMixer : UIEffectFloatMixerBehaviour
{
protected override float currentValue
{
get => effect.toneIntensity;
set => effect.toneIntensity = value;
}
}
}
#endif