16 lines
		
	
	
		
			453 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			453 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#include "CSAsyncLoadSoftObjectPtr.h"
 | 
						|
#include "Engine/AssetManager.h"
 | 
						|
#include "Engine/StreamableManager.h"
 | 
						|
 | 
						|
void UCSAsyncLoadSoftPtr::LoadSoftObjectPaths(const TArray<FSoftObjectPath>& SoftObjectPtr)
 | 
						|
{
 | 
						|
	UAssetManager::Get().GetStreamableManager().RequestAsyncLoad(SoftObjectPtr,
 | 
						|
	FStreamableDelegate::CreateUObject(this, &UCSAsyncLoadSoftPtr::OnAsyncLoadComplete));
 | 
						|
}
 | 
						|
 | 
						|
void UCSAsyncLoadSoftPtr::OnAsyncLoadComplete()
 | 
						|
{
 | 
						|
	InvokeManagedCallback();
 | 
						|
}
 | 
						|
 |