Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/UMG/Public/Components/Slider.h |
Include |
#include "Components/Slider.h" |
class USlider : public UWidget
A simple widget that shows a sliding bar with a handle that allows you to control the value between 0..1.
No Children
Name | Description | ||
---|---|---|---|
|
IndentHandle |
Whether the slidable area should be indented to fit the handle. |
|
|
IsFocusable |
Should the slider be focusable? |
|
|
float |
K2_Cache_Value |
|
|
Locked |
Whether the handle is interactive or fixed. |
|
|
float |
MaxValue |
The maximum value the slider can be set to. |
|
float |
MinValue |
The minimum value the slider can be set to. |
|
MouseUsesStep |
Sets new value if mouse position is greater/less than half the step size. |
|
|
TSharedPtr< SSl... |
MySlider |
Native Slate Widget |
|
OnControllerCaptureBegin |
Invoked when the controller capture begins. |
|
|
OnControllerCaptureEnd |
Invoked when the controller capture ends. |
|
|
OnMouseCaptureBegin |
Invoked when the mouse is pressed and a capture begins. |
|
|
OnMouseCaptureEnd |
Invoked when the mouse is released and a capture ends. |
|
|
OnValueChanged |
Called when the value is changed by slider or typing. |
|
|
TEnumAsByte< EO... |
Orientation |
The slider's orientation. |
|
RequiresControllerLock |
Sets whether we have to lock input to change the slider value. |
|
|
SliderBarColor |
The color to draw the slider bar in. |
|
|
SliderHandleColor |
The color to draw the slider handle in. |
|
|
float |
StepSize |
The amount to adjust the value by, when using a controller or keyboard |
|
float |
Value |
The volume value to display. |
|
ValueDelegate |
A bindable delegate to allow logic to drive the value of the widget |
|
|
WidgetStyle |
The progress bar style |
Name | Description | |
---|---|---|
|
USlider ( |
Name | Description | ||
---|---|---|---|
|
float |
GetNormalizedValue() |
Get the current value scaled from 0 to 1 |
|
float |
GetValue() |
Gets the current value of the slider. |
|
HandleOnControllerCaptureBegin() |
||
|
HandleOnControllerCaptureEnd() |
||
|
HandleOnMouseCaptureBegin() |
||
|
HandleOnMouseCaptureEnd() |
||
|
HandleOnValueChanged ( |
||
|
float |
K2_Gate_Value() |
|
|
SetIndentHandle ( |
Sets if the slidable area should be indented to fit the handle |
|
|
SetLocked ( |
Sets the handle to be interactive or fixed |
|
|
SetMaxValue ( |
Sets the maximum value of the slider. |
|
|
SetMinValue ( |
Sets the minimum value of the slider. |
|
|
SetSliderBarColor ( |
Sets the color of the slider bar |
|
|
SetSliderHandleColor ( |
Sets the color of the handle bar |
|
|
SetStepSize ( |
Sets the amount to adjust the value by, when using a controller or keyboard |
|
|
SetValue ( |
Sets the current value of the slider. |
Name | Description | ||
---|---|---|---|
|
TSharedPtr< ... |
GetAccessibleWidget() |
Gets the widget that accessibility properties should synchronize to. |
|
const FText |
GetPaletteCategory() |
Gets the palette category of the widget |
|
TSharedRef< ... |
RebuildWidget() |
Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. |
|
SynchronizeProperties() |
Applies all properties to the native widget if possible. |
Name | Description | ||
---|---|---|---|
|
ReleaseSlateResources ( |