CameraCaptureDemo/Plugins/CameraCapture/Source/CameraCaptureSubSystem.h

32 lines
575 B
C++

// Copyright 2026 (c) Jupiter. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Subsystems/WorldSubsystem.h"
#include "CameraCaptureSubSystem.generated.h"
class ACameraCaptureActor;
UCLASS()
class CAMERACAPTURE_API UCameraCaptureSubSystem : public UWorldSubsystem
{
GENERATED_BODY()
public:
virtual void Initialize(FSubsystemCollectionBase& Collection) override;
virtual void Deinitialize() override;
virtual void OnWorldBeginPlay(UWorld& InWorld) override;
private:
TArray<TWeakObjectPtr<ACameraCaptureActor>> AllCaptureCameras;
};