Skip to content

NumericAnimator<T> ​

Namespace: Hex1b.Animation

Assembly: Hex1b.dll

An animator that interpolates between two numeric values using eased progress. Supported types are , , and .

csharp
public class NumericAnimator<T> : Hex1bAnimator where T : struct

Inheritance ​

Object → Hex1bAnimator → NumericAnimator<T>

Properties ​

From ​

The starting value.

Returns: <T>

csharp
public T From { get; set; }

To ​

The ending value.

Returns: <T>

csharp
public T To { get; set; }

Value ​

The current interpolated value based on eased progress.

Returns: <T>

csharp
public T Value { get; }

Methods ​

AnimateTo(T) ​

Retargets the animation toward a new value, starting from the current interpolated value. If already at the target, no animation is started.

Parameters:

  • target (<T>):
csharp
public void AnimateTo(T target)

Released under the MIT License.