mirror of
https://github.com/mob-sakai/UIEffect.git
synced 2026-11-20 18:02:38 +08:00
742a5cd8dc
Tracks for changing properties have been added. Also, `ControlTrack` enables `UIEffect` only within the clip. close #347
26 lines
679 B
C#
26 lines
679 B
C#
#if TIMELINE_ENABLE
|
|
using System.ComponentModel;
|
|
using UnityEngine.Timeline;
|
|
using Coffee.UIEffects.Timeline;
|
|
|
|
namespace Coffee.UIEffects
|
|
{
|
|
[FloatClipUsage(0.01f, 10f)]
|
|
[TrackClipType(typeof(UIEffectFloatClip))]
|
|
[DisplayName("UIEffect Tracks/Gradation Scale Track")]
|
|
public class GradationScaleTrack : UIEffectTrack<GradationScaleMixer>
|
|
{
|
|
protected override string fieldName => "m_GradationScale";
|
|
}
|
|
|
|
public class GradationScaleMixer : UIEffectFloatMixerBehaviour
|
|
{
|
|
protected override float currentValue
|
|
{
|
|
get => effect.gradationScale;
|
|
set => effect.gradationScale = value;
|
|
}
|
|
}
|
|
}
|
|
#endif
|