public override void SetBySmooth(MaskableGraphic target, SmoothData sd, ElementStateData esd, float progress) { if (sd == null) { target.color = esd.color32; } else { target.color = sd.Get(esd.color32, progress); } }
public override void SetBySmooth(RectTransform target, SmoothData sd, ElementStateData esd, float progress) { if (sd == null) { target.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, esd.vector3.x); } else { target.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, sd.Get(esd.vector3.x, progress)); } }
public override void SetBySmooth(Transform target, SmoothData sd, ElementStateData esd, float progress) { if (sd == null) { target.localPosition = esd.vector3; } else { target.localPosition = sd.Get(esd.vector3, progress); } }
public override void SetBySmooth(CanvasGroup target, SmoothData sd, ElementStateData esd, float progress) { if (sd == null) { target.alpha = esd.vector3.x; } else { target.alpha = sd.Get(esd.vector3.x, progress); } }
public override void SetBySmooth(MaskableGraphic target, SmoothData sd, ElementStateData esd, float progress) { if (sd == null) { Color color = target.color; color.a = esd.vector3.x; target.color = color; } else { Color color = target.color; color.a = sd.Get(esd.vector3.x, progress); target.color = color; } }