UAudioSliderBase

An audio slider widget.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

AudioWidgets

Header

/Engine/Plugins/Runtime/AudioWidgets/Source/AudioWidgets/Public/AudioSlider.h

Include

#include "AudioSlider.h"

Syntax

UCLASS(Abstract)
class UAudioSliderBase : public UWidget

Remarks

An audio slider widget.

Variables

Name Description

Public variable UProperty Category, EditAnywhere

bool

 

IsUnitsTextReadOnly

Whether to set the units part of the text label read only.

Public variable UProperty Category, EditAnywhere

bool

 

IsValueTextReadOnly

Whether to set the value part of the text label read only.

Protected variable

FLinearColor

 

K2_Cache_SliderBackgroundColor

Protected variable

FLinearColor

 

K2_Cache_SliderBarColor

Protected variable

FLinearColor

 

K2_Cache_SliderThumbColor

Protected variable

FLinearColor

 

K2_Cache_TextLabelBackgroundColor

Protected variable

float

 

K2_Cache_Value

Protected variable

FLinearColor

 

K2_Cache_WidgetBackgroundColor

Protected variable

TSharedPtr< SAu...

 

MyAudioSlider

Native Slate Widget

Public variable UProperty Category BlueprintAssignable

FOnFloatValueCh...

 

OnValueChanged

Called when the value is changed by slider or typing.

Public variable UProperty Category, EditAnywhere BlueprintReadOnly

TEnumAsByte< EO...

 

Orientation

The slider's orientation.

Public variable UProperty Category, EditAnywhere

bool

 

ShowLabelOnlyOnHover

If true, show text label only on hover; if false always show label.

Public variable UProperty Category, EditAnywhere

bool

 

ShowUnitsText

Whether to show the units part of the text label.

Public variable UProperty Category, EditAnywhere

FLinearColor

 

SliderBackgroundColor

The color to draw the slider background.

Public variable UProperty

FGetLinearColor

 

SliderBackgroundColorDelegate

A bindable delegate for the SliderBackgroundColor.

Public variable UProperty Category, EditAnywhere

FLinearColor

 

SliderBarColor

The color to draw the slider bar.

Public variable UProperty

FGetLinearColor

 

SliderBarColorDelegate

A bindable delegate for the SliderBarColor.

Public variable UProperty Category, EditAnywhere

FLinearColor

 

SliderThumbColor

The color to draw the slider thumb.

Public variable UProperty

FGetLinearColor

 

SliderThumbColorDelegate

A bindable delegate for the SliderThumbColor.

Public variable UProperty Category, EditAnywhere

FLinearColor

 

TextLabelBackgroundColor

The color to draw the text label background.

Public variable UProperty

FGetLinearColor

 

TextLabelBackgroundColorDelegate

A bindable delegate for the TextLabelBackgroundColor.

Public variable UProperty Category, EditAnywhere

FText

 

UnitsText

The text label units

Public variable UProperty Category, EditAnywhere, Meta

float

 

Value

The linear value.

Public variable UProperty

FGetFloat

 

ValueDelegate

A bindable delegate to allow logic to drive the value of the widget

Public variable UProperty Category, EditAnywhere

FLinearColor

 

WidgetBackgroundColor

The color to draw the widget background.

Public variable UProperty

FGetLinearColor

 

WidgetBackgroundColorDelegate

A bindable delegate for the WidgetBackgroundColor.

Protected variable

FAudioSliderSty...

 

WidgetStyle

Constructors

Name Description

Public function

UAudioSliderBase

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function UFunction BlueprintCallable, Category

float

 

GetLinValue

(
    const float OutputValue
)

Get linear value from output based on internal lin to output mapping.

Public function UFunction BlueprintCallable, Category

float

 

GetOutputValue

(
    const float LinValue
)

Get output value from linear based on internal lin to output mapping.

Protected function

void

 

HandleOnValueChanged

(
    float InValue
)

Protected function

FLinearColor

 

K2_Gate_SliderBackgroundColor()

Protected function

FLinearColor

 

K2_Gate_SliderBarColor()

Protected function

FLinearColor

 

K2_Gate_SliderThumbColor()

Protected function

FLinearColor

 

K2_Gate_TextLabelBackgroundColor()

Protected function

float

 

K2_Gate_Value()

Protected function

FLinearColor

 

K2_Gate_WidgetBackgroundColor()

Public function UFunction BlueprintCallable, Category

void

 

SetShowLabelOnlyOnHover

(
    const bool bShowLabelOnlyOnHover
)

If true, show text label only on hover; if false always show label.

Public function UFunction BlueprintCallable, Category

void

 

SetShowUnitsText

(
    const bool bShowUnitsText
)

Sets whether to show the units text

Public function UFunction BlueprintCallable, Category

void

 

SetSliderBackgroundColor

(
    FLinearColor InValue
)

Sets the slider background color

Public function UFunction BlueprintCallable, Category

void

 

SetSliderBarColor

(
    FLinearColor InValue
)

Sets the slider bar color

Public function UFunction BlueprintCallable, Category

void

 

SetSliderThumbColor

(
    FLinearColor InValue
)

Sets the slider thumb color

Public function UFunction BlueprintCallable, Category

void

 

SetTextLabelBackgroundColor

(
    FSlateColor InColor
)

Sets the label background color

Public function UFunction BlueprintCallable, Category

void

 

SetUnitsText

(
    const FText Units
)

Sets the units text

Public function UFunction BlueprintCallable, Category

void

 

SetUnitsTextReadOnly

(
    const bool bIsReadOnly
)

Sets whether the units text is read only

Public function UFunction BlueprintCallable, Category

void

 

SetValueTextReadOnly

(
    const bool bIsReadOnly
)

Sets whether the value text is read only

Public function UFunction BlueprintCallable, Category

void

 

SetWidgetBackgroundColor

(
    FLinearColor InValue
)

Sets the widget background color

Overridden from UWidget

Name Description

Public function Virtual

const FText

 

GetPaletteCategory()

Gets the palette category of the widget

Protected function Virtual

TSharedRef< ...

 

RebuildWidget()

Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed.

Public function Virtual

void

 

SynchronizeProperties()

Applies all properties to the native widget if possible.

Overridden from UVisual

Name Description

Public function Virtual

void

 

ReleaseSlateResources

(
    bool bReleaseChildren
)