10 private readonly
bool _isFill;
11 private float _originalReveal;
13 private float _startReveal;
14 private float _targetReveal;
25 float durationSeconds,
28 : base(durationSeconds, easing)
31 throw new ArgumentOutOfRangeException(nameof(direction));
40 internal override EffectChannel Channel => EffectChannel.Reveal;
42 internal override bool SupportsTarget(
object target) =>
48 _originalReveal = EffectTargetAccess.GetReveal(Target);
49 _originalDirection = EffectTargetAccess.GetRevealDirection(Target);
53 _startReveal = _originalReveal >= 0.9999f ? 0f : _originalReveal;
58 _startReveal = _originalReveal;
62 EffectTargetAccess.SetReveal(Target, _startReveal,
Direction);
67 EffectTargetAccess.SetReveal(
69 _startReveal + (_targetReveal - _startReveal) * progress,
74 EffectTargetAccess.SetReveal(Target, _originalReveal, _originalDirection);
86 float durationSeconds,
88 : base(direction, durationSeconds, easing, isFill: true)
102 float durationSeconds,
104 : base(direction, durationSeconds, easing, isFill: false)
DisplayEffect(float durationSeconds, EasingKind easing=EasingKind.Linear)
Initializes a new instance of the DisplayEffect class.
EraseEffect(EffectDirection direction, float durationSeconds, EasingKind easing=EasingKind.Linear)
Creates a directional erase effect.
FillEffect(EffectDirection direction, float durationSeconds, EasingKind easing=EasingKind.Linear)
Creates a directional fill effect.
EffectDirection Direction
Gets the direction in which the wipe travels.
WipeEffect(EffectDirection direction, float durationSeconds, EasingKind easing, bool isFill)
Initializes a new instance of the WipeEffect class.
override void OnStarting()
Captures or prepares target state before the effect starts.
override void ApplyProgress(float progress)
override void RestoreOriginalState()
Represents a rendered view of a scene, combining a camera position with a viewport configuration to c...
Represents a single layer within a Scene, containing a grid of tiles and supporting various coordinat...
EffectDirection
Specifies the direction in which a directional display effect travels.
EasingKind
Enumeration of all supported easing functions for animation and movement interpolation....