Language:
Discover
By Skill Level
By Category

UPanelWidget

Choose your OS:

Inheritance Hierarchy

Syntax

class UPanelWidget : public UWidget

Remarks

The base class for all UMG panel widgets. Panel widgets layout a collection of child widgets.

Variables

Name Description

Protected variable

bool

 

bCanHaveMultipleChildren

Can this panel allow for multiple children?

Protected variable

TArray < UPanelS ...

 

Slots

The slots in the widget holding the child widgets of this panel.

Constructors

Name Description

Public function

UPanelWidget

(
    const FObjectInitializer & ObjectIn...
)

UPanelWidget .

Functions

Name Description

Public function

UPanelSlot &...

 

AddChild

(
    UWidget * Content
)

Adds a new child widget to the container.

Public function

bool

 

CanAddMoreChildren()

True if the panel can accept another child widget.

Public function

bool

 

CanHaveMultipleChildren()

True if the panel supports more than one child.

Public function

void

 

ClearChildren()

Remove all child widgets from the panel widget.

Public function

UWidget *...

 

GetChildAt

(
    int32 Index
)

Gets the widget at an index.

Public function

int32

 

GetChildIndex

(
    UWidget * Content
)

Gets the index of a specific child widget

Public function

int32

 

GetChildrenCount()

Gets number of child widgets in the container.

Protected function Virtual

UClass *

 

GetSlotClass()

Public function

const TArray ...

 

GetSlots()

The slots in the widget holding the child widgets of this panel.

Public function

bool

 

HasAnyChildren()

True if there are any child widgets in the panel

Public function

bool

 

HasChild

(
    UWidget * Content
)

True if panel contains this widget

Public function

UPanelSlot &...

 

InsertChildAt

(
    int32 Index,
    UWidget * Content
)

Inserts a widget at a specific index.

Public function Virtual

bool

 

LockToPanelOnDrag()

Protected function Virtual

void

 

OnSlotAdded

(
    UPanelSlot * InSlot
)

Protected function Virtual

void

 

OnSlotRemoved

(
    UPanelSlot * InSlot
)

Public function

bool

 

RemoveChild

(
    UWidget * Content
)

Removes a specific widget from the container.

true if the widget was found and removed.

Public function

bool

 

RemoveChildAt

(
    int32 Index
)

Removes a child by it's index.

Public function Virtual

bool

 

ReplaceChild

(
    UWidget * CurrentChild,
    UWidget * NewChild
)

Swaps the child widget out of the slot, and replaces it with the new child widget.

Public function

bool

 

ReplaceChildAt

(
    int32 Index,
    UWidget * Content
)

Swaps the widget out of the slot at the given index, replacing it with a different widget.

Public function

void

 

ShiftChild

(
    int32 Index,
    UWidget * Child
)

Moves the child widget from its current index to the new index provided.

Overridden from UWidget

Name Description

Public function Virtual

void

 

ConnectEditorData()

Allows general fixups and connections only used at editor time.

Protected function Virtual

TSharedRef < ...

 

RebuildDesignWidget

(
    TSharedRef < SWidget > Content
)

End UObject .

Public function Virtual

void

 

SetDesignerFlags

(
    EWidgetDesignFlags::Type NewFlags
)

Sets the designer flags on the widget.

Overridden from UVisual

Name Description

Public function Virtual

void

 

ReleaseSlateResources

(
    bool bReleaseChildren
)

Overridden from UObject

Name Description

Public function Virtual

void

 

PostLoad()

Begin UObject .

References

Module

UMG

Header

Runtime/UMG/Public/Components/PanelWidget.h