SpinBoxComputeExponentSliderFraction

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.

Choose your operating system:

Windows

macOS

Linux

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/Input/SSpinBox.h

Include

#include "Widgets/Input/SSpinBox.h"

Source

/Engine/Source/Runtime/Slate/Private/Widgets/Input/SSpinBox.cpp

Syntax

float SpinBoxComputeExponentSliderFraction
(
    float FractionFilled,
    float StartFractionFilled,
    float SliderExponent
)

Remarks

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