Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/TSoftObjectPtr
Description
Attempts to asynchronously load the object referenced by this soft pointer. This is a wrapper around the LoadAsync function in SoftObjectPath, and the delegate is responsible for validating it loaded the correct type
| Name | LoadAsync |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/SoftObjectPtr.h |
| Include Path | #include "UObject/SoftObjectPtr.h" |
int32 LoadAsync
(
FLoadSoftObjectPathAsyncDelegate InCompletionDelegate,
FLoadAssetAsyncOptionalParams InOptionalParams
) const
Unique ID associated with this load request (the same object or package can be associated with multiple IDs).
Parameters
| Name | Remarks |
|---|---|
| InCompletionDelegate | Delegate to be invoked when the async load finishes, this will execute on the game thread as soon as the load succeeds or fails |
| InOptionalParams | Optional parameters for async loading the asset |