Reference
UDreamPanelLayoutBase
Dream Panel Layout Base
Inherits from UDreamLayoutContainer.
Declared in Public/Core/Components/DreamPanelLayouts.h.
Dream Panel Layout Base
Functions
| Function | Kind | Description |
|---|---|---|
UDreamPanelSlot* AddChild(UDreamWidget* InChild, int32 InSiblingIndex) | callable | Returns the child's slot, or null -- see UDreamWidget::AddChild for what null can mean. |
void DestroyAllChildren() | callable | UMG's ClearChildren under the name this plugin already gave it: UMG merely detaches and lets GC take the pieces, which here would leave live registered widgets with nobody holding them. |
TArray<UDreamWidget*> GetAllChildren() | pure | Get All Children |
UDreamWidget* GetChildAt(int32 InIndex) | pure | Get Child At |
int32 GetChildIndex(UDreamWidget* InChild) | pure | Get Child Index |
int32 GetChildrenCount() | pure | UMG's UPanelWidget child API, forwarded to the widget that owns this container. |
bool HasAnyChildren() | pure | Has Any Children |
bool HasChild(UDreamWidget* InChild) | pure | Has Child |
bool RemoveChild(UDreamWidget* InChild) | callable | Remove Child |
bool RemoveChildAt(int32 InIndex) | callable | Remove Child At |
bool ReplaceChildAt(int32 InIndex, UDreamWidget* InContent) | callable | UOverlay::ReplaceOverlayChildAt and UStackBox::ReplaceStackBoxChildAt, once, for every panel. |
void RequestLayoutRefresh() | callable | Request Layout Refresh |
Compared with UMG
Every Blueprint-facing member of the UMG class, and where it went. adopt: same name, same meaning. map: here under another name or on another type. reject: deliberately absent, with the reason.
| UMG | Member | Status | Here | Note |
|---|---|---|---|---|
UPanelWidget | GetChildrenCount | adopt | GetChildrenCount | The whole family forwards to the widget that owns the container: the hierarchy belongs to UDreamWidget, and a second child list on the panel would be the one thing guaranteed to disagree with it. |
UPanelWidget | GetChildAt | adopt | GetChildAt | |
UPanelWidget | GetAllChildren | adopt | GetAllChildren | |
UPanelWidget | GetChildIndex | adopt | GetChildIndex | |
UPanelWidget | HasChild | adopt | HasChild | |
UPanelWidget | RemoveChildAt | adopt | RemoveChildAt | |
UPanelWidget | AddChild | adopt | AddChild | Returns the slot. UMG needs a typed AddChildTo<Panel> per panel because each panel has its own slot class; there is one UDreamPanelSlot here, so there is one verb. |
UPanelWidget | RemoveChild | adopt | RemoveChild | Detaches and leaves the child alive, as UMG's does; ownership passes to the caller. |
UPanelWidget | HasAnyChildren | adopt | HasAnyChildren | |
UPanelWidget | ClearChildren | map | DestroyAllChildren | Named for what it has to do here. UMG's merely detaches and lets GC take the pieces, which in this plugin would leave live registered widgets with nobody holding them. |