Navigation
API > API/Runtime > API/Runtime/Slate
Description
This function compute a slider position by simulating two log on both side of the neutral value Example a slider going from 0.0 to 2.0 with a neutral value of 1.0, the user will have a lot of precision around the neutral value on both side. | || | | - - | | -____-
0 1 2
The function return a float representing the slider fraction used to position the slider handle FractionFilled: this is the value slider position with no exponent StartFractionFilled: this is the neutral value slider position with no exponent SliderExponent: this is the slider exponent
| Name | SpinBoxComputeExponentSliderFraction |
| Type | function |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Input/SSpinBox.h |
| Include Path | #include "Widgets/Input/SSpinBox.h" |
| Source | /Engine/Source/Runtime/Slate/Private/Widgets/Input/SSpinBox.cpp |
float SpinBoxComputeExponentSliderFraction
(
float FractionFilled,
float StartFractionFilled,
float SliderExponent
)