5#include "CoreMinimal.h"
7#include "Layout/Visibility.h"
8#include "Widgets/DeclarativeSyntaxSupport.h"
9#include "Engine/LocalPlayer.h"
10#include "Widgets/SCompoundWidget.h"
11#include "Widgets/Layout/SConstraintCanvas.h"
19 _Visibility = EVisibility::SelfHitTestInvisible;
24 void Construct(
const FArguments& InArgs,
const FLocalPlayerContext& InPlayerContext);
26 virtual void Tick(
const FGeometry& AllottedGeometry,
const double InCurrentTime,
const float InDeltaTime)
override;
37 FLocalPlayerContext PlayerContext;
53 ContainerWidget.Reset();
58 bool bRemoving =
false;
60 TWeakObjectPtr<USceneComponent> Component;
61 TWeakObjectPtr<class UAdvancedWidgetComponent> WidgetComponent;
63 TSharedPtr<SWidget> ContainerWidget;
64 TSharedPtr<SWidget>
Widget;
65 SConstraintCanvas::FSlot* Slot;
68 TMap<FObjectKey, FComponentEntry> ComponentMap;
69 TSharedPtr<SConstraintCanvas> Canvas;
71 void RemoveEntryFromCanvas(SWorldAdvancedWidgetScreenLayer::FComponentEntry& Entry);
74 virtual void TickEntry(UGameViewportClient* ViewportClient,
const FGeometry& ViewportGeometry,
const FGeometry& AllottedGeometry, FComponentEntry& Entry,
bool bProjected, FVector& ViewportPosition);
75 virtual void TickClampedEntry(UGameViewportClient* ViewportClient,
const FGeometry& ViewportGeometry,
const FGeometry& AllottedGeometry, FComponentEntry& Entry,
bool bProjected, FVector& ViewportPosition);