diff --git a/Plugins/LuckyWorld/Source/LuckyWorld/Private/Lib/LuckyDataCaptureSubsystem.cpp b/Plugins/LuckyWorld/Source/LuckyWorld/Private/Lib/LuckyDataCaptureSubsystem.cpp index 7851e503..87435833 100644 --- a/Plugins/LuckyWorld/Source/LuckyWorld/Private/Lib/LuckyDataCaptureSubsystem.cpp +++ b/Plugins/LuckyWorld/Source/LuckyWorld/Private/Lib/LuckyDataCaptureSubsystem.cpp @@ -3,6 +3,10 @@ #include "Lib/LuckyDataCaptureSubsystem.h" +#include "Lib/LuckyWorldFunctions.h" - +void ULuckyDataCaptureSubsystem::WriteImageToDisk(UTextureRenderTarget2D* RenderTarget, int32 Count, const FString& Folder) +{ + ULuckyWorldFunctions::SaveRenderTargetToDisk(RenderTarget,Folder); +} diff --git a/Plugins/LuckyWorld/Source/LuckyWorld/Public/Lib/LuckyDataCaptureSubsystem.h b/Plugins/LuckyWorld/Source/LuckyWorld/Public/Lib/LuckyDataCaptureSubsystem.h index 2fb383dc..15d6e805 100644 --- a/Plugins/LuckyWorld/Source/LuckyWorld/Public/Lib/LuckyDataCaptureSubsystem.h +++ b/Plugins/LuckyWorld/Source/LuckyWorld/Public/Lib/LuckyDataCaptureSubsystem.h @@ -10,7 +10,7 @@ * */ UCLASS() -class LUCKYWORLD_API UDataCaptureSubsystem : public UWorldSubsystem +class LUCKYWORLD_API ULuckyDataCaptureSubsystem : public UWorldSubsystem { GENERATED_BODY()