Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

30 lines
746 B
C++

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