slate, slider bind value

How do you bind values to the slider? So, every time you change the slider position it updates floats or ints. Right now I’m trying to figure out how to use the onvaluechange() function, but it is all very confusing.
Here is what I have so far. Also, as an aside how do you change the height of the slider? I change the .heightOverride() and the slider height is always unaffected.
+ SOverlay::Slot()
.VAlign(VAlign_Center)
.HAlign(HAlign_Center)
[
SNew(SBox)
.HeightOverride(8000)
.WidthOverride(200)
[
SAssignNew(TestSlider, SSlider)
.Visibility(EVisibility::Visible)
.OnValueChanged(onSliderChange)
.SliderBarColor(SliderColor)
]
]
FOnFloatValueChanged onSliderChange;
onSliderChange.BindUFunction(this, “onSlider”);

void SStrategySlateHUDWidget::onSlider()
{
	UE_LOG(LogTemp, Warning, TEXT("slider"));
	//update values handle whatever here
}
  • SOverlay::Slot()
    .VAlign(VAlign_Center)
    .HAlign(HAlign_Center)
    [
    SNew(SBox)
    .HeightOverride(8000)
    .WidthOverride(200)
    [
    SAssignNew(TestSlider, SSlider)
    .Visibility(EVisibility::Visible)
    .OnValueChanged(onSliderChange)
    .SliderBarColor(SliderColor)
    ]
    ]

    FOnFloatValueChanged onSliderChange;
    onSliderChange.BindUFunction(this, “onSlider”);

Don’t know what happened to the formatting of this code in original post