UKismetSystemLibrary::Conv_SoftClassReferenceToString
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticBlueprintPureBlueprintThreadSafeBlueprintAutocast
Description
Converts a soft class reference directly to its path string. This is the "To String (SoftClassReference)" autocast node in Blueprint.
Caveats & Gotchas
- • Equivalent to converting the reference to FSoftClassPath 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_SoftClassReferenceToString(const TSoftClassPtr<UObject>& SoftClassReference) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| SoftClassReference | const TSoftClassPtr<UObject>& | The soft class reference to stringify. | — |
Return Type
FString Example
Log a soft class reference's path C++
FString PathString = UKismetSystemLibrary::Conv_SoftClassReferenceToString(MySoftClassRef);
UE_LOG(LogTemp, Log, TEXT("Class ref: %s"), *PathString); See Also
Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?