Navigation
Unreal Engine C++ API Reference > Plugins > CommonUI
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UVisual
- UWidget
- UPanelWidget
- UWidgetSwitcher
- UCommonAnimatedSwitcher
- UCommonActivatableWidgetSwitcher
References
Module | CommonUI |
Header | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/CommonAnimatedSwitcher.h |
Include | #include "CommonAnimatedSwitcher.h" |
Syntax
UCLASS&40;&41;
class UCommonAnimatedSwitcher : public UWidgetSwitcher
Remarks
A widget switcher that activates / deactivates CommonActivatableWidgets, allowing for associated animations to trigger.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
bool | bCurrentlySwitching | |
![]() |
bool | bInstantTransition | If set, transition animations will not play |
![]() |
bool | bSetOnce | |
![]() |
TSharedPtr< SCommonAnimatedSwitcher > | MyAnimatedSwitcher | |
![]() |
TSharedPtr< SSpacer > | MyInputGuard | |
![]() |
TSharedPtr< SOverlay > | MyOverlay | |
![]() |
UCommonAnimatedSwitcher::FOnActiveIndexChanged | OnActiveWidgetIndexChanged | |
![]() |
UCommonAnimatedSwitcher::FOnTransitioningChanged | OnTransitioningChanged | |
![]() ![]() ![]() ![]() |
ETransitionCurve | TransitionCurveType | The curve function type to apply to the transition animation |
![]() ![]() ![]() ![]() |
float | TransitionDuration | The total duration of a single transition between widgets |
![]() ![]() ![]() ![]() |
ECommonSwitcherTransition | TransitionType | The type of transition to play between widgets |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UCommonAnimatedSwitcher
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
void | ActivateNextWidget
(
bool bCanWrap |
|
![]() ![]() ![]() |
void | ActivatePreviousWidget
(
bool bCanWrap |
|
![]() ![]() |
void | ||
![]() ![]() |
void | HandleSlateActiveIndexChanged
(
int32 ActiveIndex |
|
![]() ![]() |
void | HandleSlateIsTransitioningChanged
(
bool bIsTransitioning |
|
![]() ![]() ![]() ![]() |
bool | HasWidgets () |
|
![]() ![]() ![]() ![]() |
bool | ||
![]() ![]() ![]() ![]() |
bool | Is the switcher playing a transition animation? | |
![]() ![]() ![]() |
void | SetDisableTransitionAnimation
(
bool bDisableAnimation |
Overridden from UWidgetSwitcher
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | SetActiveWidget
(
UWidget* Widget |
Activates the widget and makes it the active index. |
![]() ![]() |
void | SetActiveWidgetIndex
(
int32 Index |
Activates the widget at the specified index. |
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. |
Overridden from UVisual
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | ReleaseSlateResources
(
bool bReleaseChildren |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FOnActiveIndexChanged | Fires when the active widget displayed by the switcher changes | |
![]() |
FOnTransitioningChanged | Fires when the switcher changes its transition animation state |