13 #include "GameFramework/Actor.h"
14 #include "NVSceneMarker.h"
15 #include "NVObjectMaskManager.h"
16 #include "NVSceneManager.generated.h"
25 enum class ENVSceneManagerState : uint8
28 NotActive UMETA(DisplayName =
"This SceneManager is not active."),
31 Active UMETA(DisplayName =
"This SceneManager is active."),
34 Ready UMETA(DisplayName =
"Ready to capture."),
37 Captured UMETA(DisplayName =
"Capturing is done."),
44 DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FNVSceneManger_SetupCompleted,
ANVSceneManager*, SceneManager,
bool, bIsSucceeded);
52 UCLASS(Blueprintable, ClassGroup = (NVIDIA), Config=Engine, HideCategories = (Replication, Tick, Tags, Input, Actor, Rendering))
64 UFUNCTION(BlueprintCallable, Category =
"Capturer")
68 ENVSceneManagerState GetState()
const;
71 UFUNCTION(BlueprintCallable, Category =
"Capturer")
74 UPROPERTY(EditAnywhere, Category = CapturerScene)
77 UPROPERTY(EditAnywhere, Category = CapturerScene)
81 virtual void PreInitializeComponents()
override;
82 virtual void PostInitializeComponents()
override;
83 virtual void BeginPlay()
override;
85 virtual void UpdateSettingsFromCommandLine();
86 virtual void SetupSceneInternal();
89 void FocusNextMarker();
90 bool IsAllSceneCaptured()
const;
95 #if WITH_EDITORONLY_DATA
96 virtual void PostEditChangeProperty(
struct FPropertyChangedEvent& PropertyChangedEvent)
override;
97 #endif //WITH_EDITORONLY_DATA
101 UPROPERTY(EditAnywhere)
105 UPROPERTY(EditInstanceOnly)
106 TArray<AActor*> SceneMarkers;
108 UPROPERTY(EditAnywhere)
109 bool bCaptureAtAllMarkers;
112 UPROPERTY(EditAnywhere)
113 bool bAutoExitAfterExportingComplete;
115 UPROPERTY(BlueprintAssignable, Category = "Events")
116 FNVSceneManger_SetupCompleted OnSetupCompleted;
118 UPROPERTY(EditAnywhere)
119 bool bUseMarkerNameAsPostfix;
127 TArray<FString> SceneCaptureExportDirNames;
130 AActor* CurrentSceneMarker;
133 ENVSceneManagerState SceneManagerState;
136 int32 CurrentMarkerIndex;
bool bIsActive
Whether this capturer actor is active and can start capturing or not.
The scene exporter actor.