UKismetSystemLibrary::BreakSoftObjectPath
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Extracts the raw path string out of a Soft Object Path struct. Shown as the "Break Soft Object Path" node, the counterpart to MakeSoftObjectPath.
Caveats & Gotchas
- • PathString is an output parameter passed by reference — in C++ you must supply a variable to receive it, the return type itself is void.
- • Breaking a default-constructed (empty) FSoftObjectPath yields an empty string rather than an error.
Signature
static void BreakSoftObjectPath(FSoftObjectPath InSoftObjectPath, FString& PathString) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| InSoftObjectPath | FSoftObjectPath | The soft object path to inspect. | — |
| PathString | FString& | Output: the path as a string. | — |
Return Type
void Example
Read the string out of a soft path C++
FString PathString;
UKismetSystemLibrary::BreakSoftObjectPath(MySoftPath, PathString);
UE_LOG(LogTemp, Log, TEXT("Path: %s"), *PathString); Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?