RealDocs

UKismetSystemLibrary::Conv_SoftObjectReferenceToString

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

Description

Converts a soft object reference directly to its path string, without an intermediate FSoftObjectPath step. This is the "To String (SoftObjectReference)" autocast node.

Caveats & Gotchas

  • Equivalent to converting the reference to FSoftObjectPath first and calling ToString() — this overload just saves a step in Blueprint graphs.
  • Returns an empty string for a null/unset reference rather than erroring.

Signature

static ENGINE_API FString Conv_SoftObjectReferenceToString(const TSoftObjectPtr<UObject>& SoftObjectReference)

Parameters

Name Type Description Default
SoftObjectReference const TSoftObjectPtr<UObject>& The soft object reference to stringify.

Return Type

FString

Example

Log a soft reference's path C++
FString PathString = UKismetSystemLibrary::Conv_SoftObjectReferenceToString(MySoftRef);
UE_LOG(LogTemp, Log, TEXT("Ref: %s"), *PathString);

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.