52 template<typename T, typename TCheck = typename std::enable_if<std::is_base_of<UObject, T>::value,
void*>::type>
55 T* Instance = NewObject<T>(Outer, Model.
Class);
56 FMemoryReader MemoryReader(Model.
Data,
true);
57 FObjectAndNameAsStringProxyArchive Ar(MemoryReader,
true);
58 Instance->Serialize(Ar);
63 template<typename T, typename TCheck = typename std::enable_if<std::is_base_of<UObject, T>::value,
void*>::type>
66 TArray<uint8> DecompressedData;
67 FArchiveLoadCompressedProxy MemoryReader(Model.
Data, NAME_LZ4);
68 MemoryReader << DecompressedData;
73 return Deserialize<T>(DecompressedModel, Outer);
78 Async(EAsyncExecution::TaskGraph, [
Object, Callback, Compress]()
81 Async(EAsyncExecution::TaskGraphMainThread,[Callback, Model = MoveTemp(Model)]()
mutable
88 template<typename T, typename TCheck = typename std::enable_if<std::is_base_of<UObject, T>::value,
void*>::type>
91 Async(EAsyncExecution::TaskGraph, [Model, Outer, Callback]()
93 T* Instance = Model.
bCompressed ? DeserializeCompressed<T>(Model, Outer) : Deserialize<T>(Model, Outer);
94 Async(EAsyncExecution::TaskGraphMainThread, [Callback, Instance]()