Navigation
API > API/Plugins > API/Plugins/CommonUI
Inheritance Hierarchy
- UOverlay
- UCommonVisibilitySwitcher
References
| Module | CommonUI |
| Header | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/CommonVisibilitySwitcher.h |
| Include | #include "CommonVisibilitySwitcher.h" |
Syntax
UCLASS (Meta=(DisableNativeTick))
class UCommonVisibilitySwitcher : public UOverlay
Remarks
Basic switcher that toggles visibility on its children to only show one widget at a time. Activates visible widget if possible.
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | ActiveWidgetIndex | ||
| bool | bActivateFirstSlotOnAdding | Whether or not to activate the first slot if one is added dynamically. | |
| bool | bAutoActivateSlot | Whether or not to automatically activate a slot when it becomes visible. | |
| bool | bCurrentlySwitching | ||
| FOnActiveWidgetIndexChanged | OnActiveWidgetIndexChangedEvent | ||
| ESlateVisibility | ShownVisibility |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| void | |||
| void | DecrementActiveWidgetIndex
(
bool bAllowWrapping |
||
| UWidget * | |||
| int32 | |||
| const FText | |||
| UClass * | GetSlotClass () |
||
| UWidget * | GetWidgetAtIndex
(
int32 Index |
||
| void | IncrementActiveWidgetIndex
(
bool bAllowWrapping |
||
| bool | |||
| void | |||
| FOnActiveWidgetIndexChanged & | |||
| void | OnDescendantDeselectedByDesigner
(
UWidget* DescendantWidget |
||
| void | OnDescendantSelectedByDesigner
(
UWidget* DescendantWidget |
||
| void | OnSlotAdded
(
UPanelSlot* InSlot |
||
| void | OnSlotRemoved
(
UPanelSlot* InSlot |
||
| void | |||
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
||
| void | |||
| void | SetActiveWidget
(
const UWidget* Widget |
||
| void | SetActiveWidgetIndex
(
int32 Index |
||
| void | SetActiveWidgetIndex_Internal
(
int32 Index, |
||
| void | |||
| void | ValidateCompiledDefaults
(
IWidgetCompilerLog& CompileLog |
Typedefs
| Name | Description |
|---|---|
| FOnActiveWidgetIndexChanged |