// Copyright Epic Games, Inc. All Rights Reserved. #include "Details/PCGVolumeDetails.h" #include "PCGComponent.h" #include "PCGVolume.h" TSharedRef FPCGVolumeDetails::MakeInstance() { return MakeShareable(new FPCGVolumeDetails()); } void FPCGVolumeDetails::GatherPCGComponentsFromSelection(const TArray>& InObjectSelected) { for (const TWeakObjectPtr& Object : InObjectSelected) { if (APCGVolume* Volume = Cast(Object)) { TInlineComponentArray Components; Volume->GetComponents(Components); for (UPCGComponent* Component : Components) { if (Component) { SelectedComponents.Add(Component); } } } } }