#include <SlotWidget.h>
◆ AddWidgetToSlot()
| void USlotWidget::AddWidgetToSlot |
( |
UUserWidget * | Widget, |
|
|
const bool | bClearWidgets ) const |
20{
21 if(
SlotOverlay ==
nullptr){UE_LOG(LogBaseWidgets,
Error, TEXT(
"USlotWidget::AddWidgetToSlot Slot Overlay Null"))return;}
23 {
24
26 }
27 UPanelSlot* PanelSlot =
SlotOverlay->AddChild(Widget);
28 if(PanelSlot ==
nullptr){UE_LOG(LogBaseWidgets,
Error, TEXT(
"USlotWidget::AddWidgetToSlot PanelSlot Failed"));
return;}
29 UOverlaySlot* OverlaySlot = Cast<UOverlaySlot>(PanelSlot);
30 if(OverlaySlot ==
nullptr){UE_LOG(LogBaseWidgets,
Error, TEXT(
"USlotWidget::AddWidgetToSlot OverlaySlot Failed"));
return;}
33}
◆ Initialize()
| bool USlotWidget::Initialize |
( |
| ) |
|
|
overrideprotectedvirtual |
11{
12 const bool Success = Super::Initialize();
15 return true;
16}
◆ bSingleItemInSlot
| bool USlotWidget::bSingleItemInSlot = false |
◆ DisplayName
| FName USlotWidget::DisplayName = "Name" |
◆ SlotHAlignment
| TEnumAsByte<EHorizontalAlignment> USlotWidget::SlotHAlignment = HAlign_Fill |
◆ SlotOverlay
| UOverlay* USlotWidget::SlotOverlay |
◆ SlotTag
| FGameplayTag USlotWidget::SlotTag |
◆ SlotVAlignment
| TEnumAsByte<EVerticalAlignment> USlotWidget::SlotVAlignment = VAlign_Fill |
The documentation for this class was generated from the following files:
- T:/Unreal/Unreal Projects/SpaceAdventure52/SpaceAdventure/Plugins/BaseHelpers/Source/BaseHelpers/Public/Widgets/SlotWidget.h
- T:/Unreal/Unreal Projects/SpaceAdventure52/SpaceAdventure/Plugins/BaseHelpers/Source/BaseHelpers/Private/Widgets/SlotWidget.cpp