UCommonActivatableWidgetContainerBase

Base of widgets built to manage N activatable widgets, displaying one at a time.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

CommonUI

Header

/Engine/Plugins/Experimental/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

Name Description

Protected variable UProperty Transient

UCommonActivata...

 

DisplayedWidget

Protected variable UProperty Transient

FUserWidgetPool

 

GeneratedWidgetsPool

Protected variable

TSharedPtr< SSp...

 

MyInputGuard

Protected variable

TSharedPtr< SOv...

 

MyOverlay

Protected variable

TSharedPtr< SCo...

 

MySwitcher

Public variable

FTransitioningC...

 

OnTransitioningChanged

Protected variable UProperty Category, EditAnywhere

ETransitionCurv...

 

TransitionCurveType

The curve function type to apply to the transition animation

Protected variable UProperty Category, EditAnywhere

float

 

TransitionDuration

The total duration of a single transition between widgets

Protected variable UProperty Category, EditAnywhere

ECommonSwitcher...

 

TransitionType

The type of transition to play between widgets

Protected variable UProperty Transient

TArray< UCommon...

 

WidgetList

Constructors

Name Description

Public function

UCommonActivatableWidgetContainerBase

(
    const FObjectInitializer& Initiali...
)

Functions

Name Description

Public function

ActivatableW...

 

AddWidget

(
    TSubclassOf< UCommonActivatableWidg...,
    TFunctionRef< void(ActivatableWidge...
)

Generates (either creates or pulls from the inactive pool) instance of the given widget class and adds it to the container.

Public function

ActivatableW...

 

AddWidget

Adds an activatable widget to the container. See BP_AddWidget for more info.

Public function

void

 

AddWidgetInstance

(
    UCommonActivatableWidget& Activata...
)

Adds an activatable widget instance to the container.

Public function UFunction BlueprintCallable, Category

void

 

ClearWidgets()

Public function Const UFunction BlueprintCallable, Category

UCommonActiv...

 

GetActiveWidget()

Public function Const

int32

 

GetNumWidgets()

Public function Const UFunction BlueprintCallable, Category

float

 

GetTransitionDuration()

Public function Const

const TArray...

 

GetWidgetList()

Public function Const

FOnDisplayed...

 

OnDisplayedWidgetChanged()

Protected function Virtual

void

 

OnWidgetAddedToList

(
    UCommonActivatableWidget& AddedWid...
)

Public function

void

 

RemoveWidget

(
    UCommonActivatableWidget& WidgetTo...
)

Protected function

void

 

SetSwitcherIndex

(
    int32 TargetIndex,
    bool bInstantTransition
)

Public function UFunction BlueprintCallable, Category

void

 

SetTransitionDuration

(
    float Duration
)

Overridden from UWidget

Name Description

Protected function Virtual

void

 

OnWidgetRebuilt()

Function called after the underlying SWidget is constructed.

Protected function Virtual

TSharedRef< ...

 

RebuildWidget()

Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed.

Overridden from UVisual

Name Description

Protected function Virtual

void

 

ReleaseSlateResources

(
    bool bReleaseChildren
)

Classes