Files
UnrealEngineUWP/Engine/Source/Developer/LogVisualizer/Private/VisualLoggerCameraController.h
Ben Marsh 13d012685f Merging copyright update from 4.19 branch.
#rb none
#rnx
#jira

[CL 3818977 by Ben Marsh in Staging-4.19 branch]
2018-01-02 15:30:26 -05:00

42 lines
1.1 KiB
C++

// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "Engine/EngineTypes.h"
#include "Engine/DebugCameraController.h"
#include "VisualLoggerCameraController.generated.h"
UCLASS(config=Input, hidedropdown)
class AVisualLoggerCameraController : public ADebugCameraController
{
public:
DECLARE_DELEGATE_OneParam(FActorSelectedDelegate, class AActor*);
DECLARE_DELEGATE_OneParam(FLogEntryIterationDelegate, int32);
GENERATED_UCLASS_BODY()
UPROPERTY()
class AActor* PickedActor;
virtual void PostInitializeComponents() override;
static AVisualLoggerCameraController* EnableCamera(UWorld* InWorld);
static void DisableCamera(UWorld* InWorld);
static bool IsEnabled(UWorld* InWorld);
virtual void Select( FHitResult const& Hit ) override;
void ShowNextEntry();
void ShowPrevEntry();
static TWeakObjectPtr<AVisualLoggerCameraController> Instance;
FActorSelectedDelegate OnActorSelected;
FLogEntryIterationDelegate OnIterateLogEntries;
protected:
virtual void SetupInputComponent() override;
};