Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UVisual
- UWidget
- UInputKeySelector
- UEditorUtilityInputKeySelector
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Components/InputKeySelector.h |
| Include | #include "Components/InputKeySelector.h" |
Syntax
class UInputKeySelector : public UWidget
Remarks
A widget for selecting a single key or a single key with a modifier.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FKey > | EscapeKeys | When true gamepad keys are allowed in the input chord representing the selected key, otherwise they are ignored. | |
| FOnIsSelectingKeyChanged | OnIsSelectingKeyChanged | Called whenever the key selection mode starts or stops. | |
| FOnKeySelected | OnKeySelected | Called whenever a new key is selected by the user. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UInputKeySelector
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Returns true if gamepad keys are allowed, otherwise returns false. | ||
| bool | Returns true if modifier keys keys are allowed, otherwise returns false. | ||
| const FButtonStyle & | Returns the style of the button used to start key selection mode. | ||
| bool | Returns true if the widget is currently selecting a key, otherwise returns false. | ||
| const FText & | Returns the text which is displayed while selecting keys. | ||
| const FMargin & | GetMargin () |
Returns the amount of blank space around the text used to display the currently selected key. | |
| const FText & | Returns the text to display when no key text is available or not selecting a key. | ||
| FInputChord | Returns the currently selected key. | ||
| const FTextBlockStyle & | GetTextStyle () |
Returns the style of the text used inside the button. | |
| void | SetAllowGamepadKeys
(
bool bInAllowGamepadKeys |
Sets whether or not gamepad keys are allowed in the selected key. | |
| void | SetAllowModifierKeys
(
bool bInAllowModifierKeys |
Sets whether or not modifier keys are allowed in the selected key. | |
| void | SetButtonStyle
(
const FButtonStyle& ButtonStyle |
Sets the style of the button used to start key selection mode. | |
| void | SetEscapeKeys
(
const TArray< FKey >& InKeys |
Sets escape keys. | |
| void | SetKeySelectionText
(
FText InKeySelectionText |
Sets the text which is displayed while selecting keys. | |
| void | Sets the amount of blank space around the text used to display the currently selected key. | ||
| void | SetNoKeySpecifiedText
(
FText InNoKeySpecifiedText |
Sets the text to display when no key text is available or not selecting a key. | |
| void | SetSelectedKey
(
const FInputChord& InSelectedKey |
Sets the currently selected key. | |
| void | SetTextBlockVisibility
(
const ESlateVisibility InVisibility |
Sets the visibility of the text block. | |
| void | SetTextStyle
(
const FTextBlockStyle& InTextStyle |
Sets the style of the text used inside the button. |
Overridden from UWidget
| Type | Name | Description | |
|---|---|---|---|
| const FText | Gets the palette category of the widget | ||
| TSharedRef< SWidget > | Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. | ||
| void | Applies all properties to the native widget if possible. |
Overridden from UVisual
| Type | Name | Description | |
|---|---|---|---|
| void | ReleaseSlateResources
(
bool bReleaseChildren |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | Handles reading, writing, and reference collecting using FArchive. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FOnIsSelectingKeyChanged | |||
| FOnKeySelected |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAllowGamepadKeys | Direct access to bAllowGamepadKeys is now deprecated. Use the setter or getter. | |
| bool | bAllowModifierKeys | Direct access to bAllowModifierKeys is now deprecated. Use the setter or getter. | |
| FText | KeySelectionText | Direct access to KeySelectionText is now deprecated. Use the setter or getter. | |
| FMargin | Margin | Direct access to Margin is now deprecated. Use the setter or getter. | |
| FText | NoKeySpecifiedText | Direct access to NoKeySpecifiedText is now deprecated. Use the setter or getter. | |
| FInputChord | SelectedKey | Direct access to SelectedKey is now deprecated. Use the setter or getter. | |
| FTextBlockStyle | TextStyle | Direct access to TextStyle is now deprecated. Use the setter or getter. | |
| FButtonStyle | WidgetStyle | Direct access to WidgetStyle is now deprecated. Use the setter or getter. |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| void | SetButtonStyle
(
const FButtonStyle* ButtonStyle |
SetButtonStyle with pointer type parameter is deprecated. Please pass a reference instead. |