LerpingFloatValue
A class in Root.Township, Alta.Utilities.
Helper that moves a float towards a target over time and pushes each new value to a setter. You call Update every frame yourself.
- Listed in Utilities and other Alta namespaces
Constructors
| Member | What it is |
|---|---|
LerpingFloatValue(Action<float> setValue) | Creates a LerpingFloatValue from setValue. |
Fields
6 private and internal fields
Properties
| Member | What it is |
|---|---|
float Current { get; } | The value last pushed to the setter. |
bool IsLerping { get; private set; } | True while a lerp is running. |
Events
| Member | What it is |
|---|---|
event Action FinishedLerp | Fired when a lerp reaches its target. |
Methods
Used in
Members of other types that take, return or hold a LerpingFloatValue: