Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/UMG/Public/Components/WidgetSwitcher.h |
Include |
#include "Components/WidgetSwitcher.h" |
class UWidgetSwitcher : public UPanelWidget
A widget switcher is like a tab control, but without tabs. At most one widget is visible at time.
Name | Description | ||
---|---|---|---|
|
ActiveWidgetIndex |
The slot index to display |
|
|
TSharedPtr< cla... |
MyWidgetSwitcher |
Name | Description | |
---|---|---|
|
UWidgetSwitcher ( |
Name | Description | ||
---|---|---|---|
|
UWidget *... |
GetActiveWidget() |
Get the reference of the currently active widget |
|
GetActiveWidgetIndex() |
Gets the slot index of the currently active widget |
|
|
GetNumWidgets() |
Gets the number of widgets that this switcher manages. |
|
|
UWidget *... |
GetWidgetAtIndex ( |
Get a widget at the provided index |
|
SetActiveWidget ( |
Activates the widget and makes it the active index. |
|
|
SetActiveWidgetIndex ( |
Activates the widget at the specified index. |
Name | Description | ||
---|---|---|---|
|
UClass * |
GetSlotClass() |
|
|
OnSlotAdded ( |
||
|
OnSlotRemoved ( |
Name | Description | ||
---|---|---|---|
|
const FText |
GetPaletteCategory() |
Gets the palette category of the widget |
|
OnDescendantDeselectedByDesigner ( |
||
|
OnDescendantSelectedByDesigner ( |
||
|
TSharedRef< ... |
RebuildWidget() |
Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. |
|
SynchronizeProperties() |
Applies all properties to the native widget if possible. |
Name | Description | ||
---|---|---|---|
|
ReleaseSlateResources ( |
Name | Description | ||
---|---|---|---|
|
PostEditChangeProperty ( |
Called when a property on this object has been modified externally |