32 Super::SetUpSceneCaptureComponent(SceneCapture);
34 ApplyViewMode(VMI_Unlit,
true, SceneCapture.ShowFlags);
36 SceneCapture.ShowFlags.SetNotDrawTaggedComponents(
false);
38 SceneCapture.ShowFlags.SetAtmosphere(
false);
40 SceneCapture.PrimitiveRenderMode = ESceneCapturePrimitiveRenderMode::PRM_UseShowOnlyList;
42 TArray<UObject *> TaggedComponents;
43 GetObjectsOfClass(UTaggedComponent::StaticClass(), TaggedComponents,
false, EObjectFlags::RF_ClassDefaultObject, EInternalObjectFlags::AllFlags);
45 TArray<UPrimitiveComponent *> ShowOnlyComponents;
46 for (
UObject *Object : TaggedComponents) {
48 SceneCapture.ShowOnlyComponents.Emplace(Component);
57 TArray<UObject *> TaggedComponents;
58 GetObjectsOfClass(UTaggedComponent::StaticClass(), TaggedComponents,
false, EObjectFlags::RF_ClassDefaultObject, EInternalObjectFlags::AllFlags);
60 SceneCapture->ClearShowOnlyComponents();
61 for (
UObject *Object : TaggedComponents) {
63 SceneCapture->ShowOnlyComponents.Emplace(Component);
66 FPixelReader::SendPixelsInRenderThread<AInstanceSegmentationCamera, FColor>(*
this);