Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/IPCGAsyncLoadingContext
Description
Request a load. If load was already requested, do nothing. LoadHandle will be set in the context, meaning that assets will stay alive while context is loaded. Request can be synchronous or asynchronous. If loading is asynchronous, the current task is paused and will be woken up when the loading is done. Returns true if the execution can continue (objects are loaded or invalid), or false if we need to wait for loading
| Name | RequestResourceLoad |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Async/PCGAsyncLoadingContext.h |
| Include Path | #include "Async/PCGAsyncLoadingContext.h" |
| Source | /Engine/Plugins/PCG/Source/PCG/Private/Async/PCGAsyncLoadingContext.cpp |
bool RequestResourceLoad
(
FPCGContext * ThisContext,
TArray < FSoftObjectPath > && ObjectsToLoad,
bool bAsynchronous
)