Class PopupTweenParameters
- Namespace
- Fallencake.UI
- Assembly
- Fallencake.UI.dll
Parameter container describing a single popup tween and its show/hide behavior.
[Serializable]
public class PopupTweenParameters : IPopupTweenParameters, ITweenBasicParameters
- Inheritance
-
objectPopupTweenParameters
- Implements
Remarks
Contains per-mode easing and duration, as well as specific parameter blocks for each supported tween type, such as MovePopupTweenParameters, ScalePopupTweenParameters, FadeCanvasGroupPopupTweenParameters, OffsetPopupTweenParameters, SizePopupTweenParameters and TintGraphicPopupTweenParameters. The active data is determined by Type.
Fields
_hideEase
[SerializeField]
protected AnimationCurve _hideEase
Field Value
- AnimationCurve
_showEase
[SerializeField]
protected AnimationCurve _showEase
Field Value
- AnimationCurve
Properties
Coroutine
Runtime coroutine reference used during playback.
public Coroutine Coroutine { get; set; }
Property Value
- Coroutine
FadeParameters
Parameter block for CanvasGroup fade tween.
public FadeCanvasGroupPopupTweenParameters FadeParameters { get; }
Property Value
HideDuration
Duration in seconds for the hide phase.
public float HideDuration { get; }
Property Value
- float
HideEase
Easing curve used for the hide phase.
public AnimationCurve HideEase { get; }
Property Value
- AnimationCurve
MoveParameters
Parameter block for move tween.
public MovePopupTweenParameters MoveParameters { get; }
Property Value
OffsetParameters
Parameter block for RectTransform offset tween.
public OffsetPopupTweenParameters OffsetParameters { get; }
Property Value
ScaleParameters
Parameter block for scale tween.
public ScalePopupTweenParameters ScaleParameters { get; }
Property Value
ShowDuration
Duration in seconds for the show phase.
public float ShowDuration { get; }
Property Value
- float
ShowEase
Easing curve used for the show phase.
public AnimationCurve ShowEase { get; }
Property Value
- AnimationCurve
SizeParameters
Parameter block for RectTransform size tween.
public SizePopupTweenParameters SizeParameters { get; }
Property Value
TintParameters
Parameter block for Graphic tint tween.
public TintGraphicPopupTweenParameters TintParameters { get; }
Property Value
Type
The tween type represented by this instance.
public TweenType Type { get; }