mirror of
https://github.com/mob-sakai/UIEffect.git
synced 2026-11-21 02:12:37 +08:00
742a5cd8dc
Tracks for changing properties have been added. Also, `ControlTrack` enables `UIEffect` only within the clip. close #347
26 lines
703 B
C#
26 lines
703 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/Gradation Intensity Track")]
|
|
public class GradationIntensityTrack : UIEffectTrack<GradationIntensityMixer>
|
|
{
|
|
protected override string fieldName => "m_GradationIntensity";
|
|
}
|
|
|
|
public class GradationIntensityMixer : UIEffectFloatMixerBehaviour
|
|
{
|
|
protected override float currentValue
|
|
{
|
|
get => effect.gradationIntensity;
|
|
set => effect.gradationIntensity = value;
|
|
}
|
|
}
|
|
}
|
|
#endif
|