RealDocs

UKismetSystemLibrary::MakeSoftObjectPath

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

Description

Builds an FSoftObjectPath struct from a string containing a full /folder/packagename.object path. Shown as the "Make Soft Object Path" node.

Caveats & Gotchas

  • No validation is performed on the path string here — passing a malformed or non-existent path produces a soft path that will simply fail to resolve later.
  • Marked BlueprintThreadSafe, so it can be called off the game thread, but resolving/loading the resulting path still needs to happen on an appropriate thread.

Signature

static FSoftObjectPath MakeSoftObjectPath(const FString& PathString)

Parameters

Name Type Description Default
PathString const FString& A full /Game/Path/PackageName.ObjectName style path.

Return Type

FSoftObjectPath

Example

Build a soft path from a known package path C++
FSoftObjectPath Path = UKismetSystemLibrary::MakeSoftObjectPath(TEXT("/Game/Characters/Hero.Hero"));

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.