Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UVisual
- UWidget
- UPanelWidget
- UWidgetSwitcher
- UCommonAnimatedSwitcher
- UCommonActivatableWidgetSwitcher
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Components/WidgetSwitcher.h |
| Include | #include "Components/WidgetSwitcher.h" |
Syntax
class UWidgetSwitcher : public UPanelWidget
Remarks
A widget switcher is like a tab control, but without tabs. At most one widget is visible at time.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< class SWidgetSwitcher > | MyWidgetSwitcher |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UWidgetSwitcher
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| UWidget * | Get the reference of the currently active widget | ||
| int32 | Gets the slot index of the currently active widget | ||
| int32 | Gets the number of widgets that this switcher manages. | ||
| UWidget * | GetWidgetAtIndex
(
int32 Index |
Get a widget at the provided index | |
| void | SetActiveWidget
(
UWidget* Widget |
Activates the widget and makes it the active index. | |
| void | SetActiveWidgetIndex
(
int32 Index |
Activates the widget at the specified index. | |
| void |
Overridden from UPanelWidget
| Type | Name | Description | |
|---|---|---|---|
| UClass * | GetSlotClass () |
UPanelWidget. | |
| void | OnSlotAdded
(
UPanelSlot* Slot |
||
| void | OnSlotRemoved
(
UPanelSlot* Slot |
Overridden from UWidget
| Type | Name | Description | |
|---|---|---|---|
| const FText | Gets the palette category of the widget | ||
| void | OnDescendantDeselectedByDesigner
(
UWidget* DescendantWidget |
||
| void | OnDescendantSelectedByDesigner
(
UWidget* DescendantWidget |
||
| 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 | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | ActiveWidgetIndex | Direct access to ActiveWidgetIndex is deprecated. Please use the getter or setter. |