UKismetSystemLibrary::Conv_SoftClassPathToSoftClassRef
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticBlueprintPureBlueprintThreadSafe
Description
Converts an FSoftClassPath into a base TSoftClassPtr<UObject> soft class reference. Shown as the "To Soft Class Reference" node in Blueprint.
Caveats & Gotchas
- • The result is not guaranteed to be resolvable — the class it points to may not exist or may not be loaded yet.
- • Because the return type is TSoftClassPtr<UObject> rather than a specific class type, you typically need an additional cast before using it as a typed class reference.
Signature
static ENGINE_API TSoftClassPtr<UObject> Conv_SoftClassPathToSoftClassRef(const FSoftClassPath& SoftClassPath) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| SoftClassPath | const FSoftClassPath& | The soft class path to wrap. | — |
Return Type
TSoftClassPtr<UObject> Example
Wrap a soft class path as a soft class reference C++
TSoftClassPtr<UObject> SoftClassRef = UKismetSystemLibrary::Conv_SoftClassPathToSoftClassRef(MySoftClassPath); See Also
Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?