Files
UnrealEngineUWP/Engine/Source/Runtime/MovieSceneCapture/Public/LevelCapture.h
ryan durand 0f0464a30e Updating copyright for Engine Runtime.
#rnx
#rb none


#ROBOMERGE-OWNER: ryan.durand
#ROBOMERGE-AUTHOR: ryan.durand
#ROBOMERGE-SOURCE: CL 10869210 via CL 10869511 via CL 10869900
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870549 by ryan durand in Main branch]
2019-12-26 14:45:42 -05:00

44 lines
1.3 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "Misc/Guid.h"
#include "MovieSceneCapture.h"
#include "LevelCapture.generated.h"
class AActor;
class FSceneViewport;
UCLASS()
class MOVIESCENECAPTURE_API ULevelCapture : public UMovieSceneCapture
{
public:
ULevelCapture(const FObjectInitializer&);
GENERATED_BODY()
/** Specifies whether the capture should start immediately, or whether it will be invoked externally (through StartMovieCapture/StopMovieCapture exec commands) */
UPROPERTY(EditAnywhere, Category=General)
bool bAutoStartCapture;
/** Specify a prerequisite actor that must be set up before we start capturing */
void SetPrerequisiteActor(AActor* Prereq);
virtual void Initialize(TSharedPtr<FSceneViewport> InViewport, int32 PIEInstance = -1) override;
virtual void OnTick(float DeltaSeconds) override;
private:
/** Specify a prerequisite actor that must be set up before we start capturing */
TWeakObjectPtr<AActor> PrerequisiteActor;
/** Copy of the ID from PrerequisiteActor. Required because JSON serialization exports the path of the object, rather that its GUID */
UPROPERTY()
FGuid PrerequisiteActorId;
/** PIE instance index that we are capturing with */
int32 PIECaptureInstance;
};