You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- 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]
30 lines
755 B
C++
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;
|
|
}; |