Files
UnrealEngineUWP/Engine/Source/Developer/LogVisualizer/Private/VisualLoggerCameraController.h
Ryan Vance 7c51ff94af Merging //UE4/Dev-Main to Dev-VR (//UE4/Dev-VR)
CL 1 of 8
#rb integration

[CL 4748712 by Ryan Vance in Dev-VR branch]
2019-01-17 18:54:05 -05:00

42 lines
1.1 KiB
C++

// Copyright 1998-2019 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;
};