Navigation
API > API/Plugins > API/Plugins/CommonUI > API/Plugins/CommonUI/Widgets
Inheritance Hierarchy
- UWidget
- UCommonActivatableWidgetContainerBase
- UCommonActivatableWidgetQueue
- UCommonActivatableWidgetStack
References
| Module | CommonUI |
| Header | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/Widgets/CommonActivatableWidgetContainer.h |
| Include | #include "Widgets/CommonActivatableWidgetContainer.h" |
Syntax
UCLASS (Abstract)
class UCommonActivatableWidgetContainerBase : public UWidget
Remarks
Base of widgets built to manage N activatable widgets, displaying one at a time. Intentionally meant to be black boxes that do not expose child/slot modification like a normal panel widget.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< UCommonActivatableWidget > | DisplayedWidget | ||
| FUserWidgetPool | GeneratedWidgetsPool | ||
| TSharedPtr< SSpacer > | MyInputGuard | ||
| TSharedPtr< SOverlay > | MyOverlay | ||
| TSharedPtr< SCommonAnimatedSwitcher > | MySwitcher | ||
| FTransitioningChanged | OnTransitioningChanged | ||
| ETransitionCurve | TransitionCurveType | The curve function type to apply to the transition animation | |
| float | TransitionDuration | The total duration of a single transition between widgets | |
| ECommonSwitcherTransitionFallbackStrategy | TransitionFallbackStrategy | Controls how we will choose another widget if a transitioning widget is removed during the transition. | |
| ECommonSwitcherTransition | TransitionType | The type of transition to play between widgets | |
| TArray< TObjectPtr< UCommonActivatableWidget > > | WidgetList |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UCommonActivatableWidgetContainerBase
(
const FObjectInitializer& Initializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| ActivatableWidgetT * | AddWidget
(
TSubclassOf< UCommonActivatableWidget > ActivatableWidgetClass, |
Generates (either creates or pulls from the inactive pool) instance of the given widget class and adds it to the container. | |
| ActivatableWidgetT * | AddWidget
(
TSubclassOf< UCommonActivatableWidget > ActivatableWidgetClass |
Adds an activatable widget to the container. See BP_AddWidget for more info. | |
| void | AddWidgetInstance
(
UCommonActivatableWidget& ActivatableWidget |
Adds an activatable widget instance to the container. | |
| void | ClearWidgets () |
||
| UCommonActivatableWidget * | |||
| int32 | |||
| float | |||
| const TArray< UCommonActivatableWidget * > & | |||
| FOnDisplayedWidgetChanged & | |||
| void | OnWidgetAddedToList
(
UCommonActivatableWidget& AddedWidget |
||
| void | |||
| TSharedRef< SWidget > | |||
| void | ReleaseSlateResources
(
bool bReleaseChildren |
||
| void | RemoveWidget
(
UCommonActivatableWidget& WidgetToRemove |
||
| void | SetSwitcherIndex
(
int32 TargetIndex, |
||
| void | SetTransitionDuration
(
float Duration |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FOnDisplayedWidgetChanged | |||
| FTransitioningChanged |