You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira UE-152773 #preflight 62fcf872200ff87e07792dac [CL 21425045 by JeanMichel Dignard in ue5-main branch]
29 lines
626 B
C++
29 lines
626 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "AssetImportTask.h"
|
|
|
|
DEFINE_LOG_CATEGORY(LogAssetImportTask);
|
|
|
|
UAssetImportTask::UAssetImportTask()
|
|
{
|
|
|
|
}
|
|
|
|
const TArray<UObject*>& UAssetImportTask::GetObjects() const
|
|
{
|
|
if (AsyncResults.IsValid())
|
|
{
|
|
AsyncResults->WaitUntilDone();
|
|
return AsyncResults->GetImportedObjects();
|
|
}
|
|
|
|
PRAGMA_DISABLE_DEPRECATION_WARNINGS
|
|
return ToRawPtrTArrayUnsafe(Result);
|
|
PRAGMA_ENABLE_DEPRECATION_WARNINGS
|
|
}
|
|
|
|
bool UAssetImportTask::IsAsyncImportComplete() const
|
|
{
|
|
return !AsyncResults.IsValid() || AsyncResults->GetStatus() == UE::Interchange::FImportResult::EStatus::Done;
|
|
}
|