FSoftObjectPath::TryLoad

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

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss