Navigation
API > API/Plugins > API/Plugins/CommonUI
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UVisual
- UWidget
- UUserWidget
- UCommonUserWidget
- UCommonButtonBase
- UCommonRotator
References
| Module | CommonUI |
| Header | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/CommonRotator.h |
| Include | #include "CommonRotator.h" |
Syntax
UCLASS&40;Meta&61;&40;DisableNativeTick&41;&41;
class UCommonRotator : public UCommonButtonBase
Remarks
A button that can rotate between given text labels.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< UCommonTextBlock > | MyText | The displayed text | |
| FNavigationDelegate | OnNavigation | Handle and use controller navigation to rotate text | |
| FOnRotated | OnRotated | Called when the Selected state of this button changes | |
| FRotationEvent | OnRotatedEvent | ||
| int32 | SelectedIndex | The index of the current text item | |
| TArray< FText > | TextLabels | Holds the array of display texts. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UCommonRotator
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | BP_OnOptionSelected
(
int32 Index |
||
| void | BP_OnOptionsPopulated
(
int32 Count |
||
| int32 | Gets the current selected index | ||
| FText | Gets the current text value of the slider. | ||
| TSharedPtr< SWidget > | HandleNavigation
(
EUINavigation UINavigation |
||
| void | PopulateTextLabels
(
TArray< FText > Labels |
Set the array of texts available | |
| void | SetSelectedItem
(
int32 InValue |
Sets the current value of the slider. | |
| void | Shift the current text left. | ||
| void | ShiftTextLeftInternal
(
bool bFromNavigation |
||
| void | Shift the current text right. | ||
| void | ShiftTextRightInternal
(
bool bFromNavigation |
Overridden from UUserWidget
| Type | Name | Description | |
|---|---|---|---|
| bool | Initialize () |
||
| FNavigationReply | NativeOnNavigation
(
const FGeometry& MyGeometry, |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FRotationEvent |