34 lines
682 B
C++
34 lines
682 B
C++
// Copyright 2026 (c) Jupiter. All Rights Reserved.
|
|
|
|
#include "CameraCaptureSubSystem.h"
|
|
#include "CameraCaptureActor.h"
|
|
|
|
#include "EngineUtils.h"
|
|
|
|
void UCameraCaptureSubSystem::Initialize(FSubsystemCollectionBase& Collection)
|
|
{
|
|
Super::Initialize(Collection);
|
|
|
|
}
|
|
|
|
void UCameraCaptureSubSystem::Deinitialize()
|
|
{
|
|
Super::Deinitialize();
|
|
}
|
|
|
|
void UCameraCaptureSubSystem::OnWorldBeginPlay(UWorld& InWorld)
|
|
{
|
|
Super::OnWorldBeginPlay(InWorld);
|
|
|
|
for (TActorIterator<ACameraCaptureActor> It(GetWorld()); It; ++It)
|
|
{
|
|
|
|
ACameraCaptureActor* CameraCaptureActor = Cast<ACameraCaptureActor>(*It);
|
|
if (CameraCaptureActor)
|
|
{
|
|
AllCaptureCameras.Emplace(CameraCaptureActor);
|
|
}
|
|
}
|
|
|
|
}
|