UKismetSystemLibrary::EqualEqual_SoftClassReference
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticBlueprintPureBlueprintThreadSafe
Description
Returns true if two soft class references point to the same class path (A == B). This is the "==" comparison node for Soft Class Reference pins in Blueprint.
Caveats & Gotchas
- • Comparison is by underlying path string, not by whether the class is loaded or by UClass pointer identity — two references with the same path always compare equal even if unresolved.
- • Comparing two unset (null) references returns true, since both have empty paths.
Signature
static ENGINE_API bool EqualEqual_SoftClassReference(const TSoftClassPtr<UObject>& A, const TSoftClassPtr<UObject>& B) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | const TSoftClassPtr<UObject>& | First soft class reference to compare. | — |
| B | const TSoftClassPtr<UObject>& | Second soft class reference to compare. | — |
Return Type
bool Example
Compare two soft class references C++
bool bSame = UKismetSystemLibrary::EqualEqual_SoftClassReference(ClassRefA, ClassRefB); See Also
Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?