RealDocs

UKismetSystemLibrary::Conv_SoftObjPathToSoftObjRef

function Engine Blueprint Since unknown
#include "Kismet/KismetSystemLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintPure

Description

Converts a Soft Object Path into a base TSoftObjectPtr<UObject> soft reference. Shown as the "To Soft Object Reference" node.

Caveats & Gotchas

  • The resulting reference is not guaranteed to be resolvable — the underlying asset may not exist, may have been renamed, or may not be loaded; you still need to call LoadSynchronous or an async load to use it.
  • Because the return type is TSoftObjectPtr<UObject> rather than a specific asset type, you'll typically need an additional cast in Blueprint to a more specific soft reference type before using it as a typed asset pointer.

Signature

static TSoftObjectPtr<UObject> Conv_SoftObjPathToSoftObjRef(const FSoftObjectPath& SoftObjectPath)

Parameters

Name Type Description Default
SoftObjectPath const FSoftObjectPath& The soft path to wrap.

Return Type

TSoftObjectPtr<UObject>

Example

Wrap a soft path as a soft object reference and load it C++
TSoftObjectPtr<UObject> SoftRef = UKismetSystemLibrary::Conv_SoftObjPathToSoftObjRef(MySoftPath);
UObject* Loaded = SoftRef.LoadSynchronous();

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.