RealDocs

UKismetSystemLibrary::GetSoftClassTopLevelAssetPath

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

Description

Converts a soft class reference to an FTopLevelAssetPath, the lightweight identifier used by asset registry and class-lookup APIs that don't need the full soft-path machinery.

Caveats & Gotchas

  • Unlike Conv_SoftObjRefToSoftClassPath, this returns an FTopLevelAssetPath rather than an FSoftClassPath — the two types are not interchangeable, so check which one a downstream API expects.
  • This is a pure struct conversion; it performs no validation or resolution of the underlying class.

Signature

static ENGINE_API FTopLevelAssetPath GetSoftClassTopLevelAssetPath(TSoftClassPtr<UObject> SoftClassReference)

Parameters

Name Type Description Default
SoftClassReference TSoftClassPtr<UObject> The soft class reference to convert.

Return Type

FTopLevelAssetPath

Example

Get a top-level asset path from a soft class reference C++
TSoftClassPtr<UObject> SoftClassRef = MyClass;
FTopLevelAssetPath Path = UKismetSystemLibrary::GetSoftClassTopLevelAssetPath(SoftClassRef);

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.