FSoftObjectPath::TryLoad

Attempts to load the asset, this will call LoadObject which can be very slow

Choose your operating system:

Windows

macOS

Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/SoftObjectPath.h

Include

#include "UObject/SoftObjectPath.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/SoftObjectPath.cpp

Syntax

UObject * TryLoad
(
    FUObjectSerializeContext * InLoadContext
) const

Remarks

Attempts to load the asset, this will call LoadObject which can be very slow

Returns

Loaded UObject, or nullptr if the reference is null or the asset fails to load

Parameters

Parameter

Description

InLoadContext

Optional load context when called from nested load callstack