I expect to get the phase model and relative position of its actor directly from the blueprint asset.But I don’t know how to access it
UBlueprint* bp = Cast<UBlueprint>(asset.GetAsset());
if (bp != nullptr)
{
if (GExportConfig.isExportPrefab)
{
AActor* actor = bp->GeneratedClass->GetDefaultObject<AActor>();
auto scene = actor->GetComponentsByClass(USceneComponent::StaticClass());
if (actor != nullptr)
{
auto root = actor->GetRootComponent();
}
}
continue;
}