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