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.

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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback