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