Files
UnrealEngineUWP/Engine/Source/Editor/LevelInstanceEditor/Private/SLevelInstancePivotPicker.h
patrick enfedaque 372d0e046e Level Instance Pivot Picker:
- Preview picker location when changing it from the details panel
- Use Actor Picker which isn't restricted to the Level Instance actors

#jira UE-174434
#rb richard.malo
#preflight 63cfe5fb976daa618c996b60

[CL 23831919 by patrick enfedaque in ue5-main branch]
2023-01-24 11:24:47 -05:00

30 lines
755 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Widgets/SCompoundWidget.h"
#include "Widgets/Input/SComboButton.h"
//////////////////////////////////////////////////////////////////////
class AActor;
DECLARE_DELEGATE_OneParam(FOnPivotActorPicked, AActor*)
class SLevelInstancePivotPicker : public SCompoundWidget
{
public:
SLATE_BEGIN_ARGS(SLevelInstancePivotPicker) {}
SLATE_EVENT(FOnPivotActorPicked, OnPivotActorPicked)
SLATE_END_ARGS()
public:
void Construct(const FArguments& InArgs);
private:
FText GetSelectedPivotActorText() const;
void OnPivotActorPicked(AActor* PickedActor);
FOnPivotActorPicked OnPivotActorPickedEvent;
TWeakObjectPtr<AActor> PivotActor;
TSharedPtr<SComboButton> PivotActorPicker;
};