Type of interpolation to use for various interfaces
public enum InterpolationModeRemarks
The output value is computed according to the interpolation type with a parametric parameter ‘t’ that varies from zero to one.
- Linear is directly proportional to ‘t’.
- Ease-in is proportional to ‘t^2’.
- Ease-out is computed with ‘t*(2-t)’.
- Smoothstep interpolation uses ‘(3-2t)*t^2’.
- Step interpolation uses ‘0’ for ‘t<0.5’ and ‘1’ for ‘t>=0.5’.
Values
| Value | Description |
|---|---|
EaseIn Added in 37.0.0 | Ease In. The value will gradually speed up and continue quickly at the end. |
EaseOut Added in 37.0.0 | Ease Out. The value will change quickly at first and slow down to smoothly reach the goal. |
Linear Added in 37.0.0 | Linear Interpolation. The value will change at a constant rate. |
Smoothstep Added in 37.0.0 | Smoothstep Interpolation. The value will speed up gradually and slow down to smoothly reach the goal. |
Step Added in 37.0.0 | Step. The value will step abruptly from the initial value to the final value half-way through. |
Generated from the Sansar 47.10.0 client ScriptApi snapshot.