12 RootComponent = CreateDefaultSubobject<USceneComponent>(TEXT(
"SceneRoot"));
13 PrimaryActorTick.bCanEverTick =
true;
14 PrimaryActorTick.bStartWithTickEnabled =
false;
15 PrimaryActorTick.TickGroup = TG_PrePhysics;
16 SetActorTickEnabled(
false);
41 GetWorld()->GetTimerManager().SetTimer(Handle, FTimerDelegate::CreateLambda([
this]
44 SetActorTickEnabled(
true);
61 Super::Tick(DeltaTime);
67 Super::EndPlay(EndPlayReason);
96 SetActorTickEnabled(
false);
100 GetWorld()->GetTimerManager().SetTimer(Handle, FTimerDelegate::CreateLambda([
this]
139 CameraPtr->Destroy();
void ChangeCameraParameters(FCameraBaseParameters newParameters)
void SaveCurrentFrameToDisk()
FCameraBaseParameters GetCameraParameters()
virtual void Tick(float DeltaTime) override
virtual void BeginPlay() override
APhotoCapture(const FObjectInitializer &ObjectInitializer)
void SetupPhotoCapture(FCaptureData NewCaptureData)
virtual void EndPlay(const EEndPlayReason::Type EndPlayReason) override
void UpdateCameraPositions(const FTransform &Transform)
int32 FramesToKeepInSamePosition
TArray< FTransform > CapturePositions
TArray< ACamera * > Cameras
int32 CurrentCaptureIndex