You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
// Copyright 1998-2017 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;
|
|
};
|