LerpingControlledFloatValue
A class in Root.Township, Alta.Utilities.
A float that eases toward a target over time and writes each step through a setter callback. A control value can temporarily take over the target. Call Update every frame.
- Listed in Utilities and other Alta namespaces
Constructors
| Member | What it is |
|---|---|
LerpingControlledFloatValue(Action<float> setValue) | Creates a LerpingControlledFloatValue from setValue. |
Fields
8 private and internal fields
Properties
| Member | What it is |
|---|---|
float Current { get; private set; } | The current value, as last passed to the setter. |
bool IsLerping { get; private set; } | True while moving toward a target. |
Events
| Member | What it is |
|---|---|
event Action FinishedLerp | Raised when a lerp reaches its target. |
Methods
1 private and internal method
Used in
Members of other types that take, return or hold a LerpingControlledFloatValue: