RealDocs

UKismetSystemLibrary::Conv_SoftClassReferenceToClass

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

Description

Resolves a soft class reference to its already-loaded class, or null if the class hasn't been loaded yet. Used internally to back the automatic Blueprint cast from a soft class reference pin to a class pin.

Caveats & Gotchas

  • Returns null if the soft class hasn't been loaded into memory — it does not trigger a load, so pair it with LoadAssetClass or a blocking load first.
  • Marked BlueprintInternalUseOnly; in Blueprint this happens implicitly via pin conversion rather than through a callable node.

Signature

static TSubclassOf<UObject> Conv_SoftClassReferenceToClass(const TSoftClassPtr<UObject>& SoftClass)

Parameters

Name Type Description Default
SoftClass const TSoftClassPtr<UObject>& Soft class reference to resolve.

Return Type

TSubclassOf<UObject>

Example

Resolve if already loaded C++
TSoftClassPtr<UObject> SoftClass = MySoftClassRef;
TSubclassOf<UObject> Class = UKismetSystemLibrary::Conv_SoftClassReferenceToClass(SoftClass);
if (Class)
{
    // The class was already resolved in memory
}

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.