UKismetSystemLibrary::NotEqual_SoftObjectReference
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticBlueprintPureBlueprintThreadSafe
Description
Returns true if two soft object references point to different asset paths (A != B). This is the "!=" comparison node for Soft Object Reference pins in Blueprint.
Caveats & Gotchas
- • Just the logical negation of EqualEqual_SoftObjectReference; comparison is by path string, not by resolved object identity.
- • Two unset (null) references are considered equal, so this returns false when comparing two nulls.
Signature
static ENGINE_API bool NotEqual_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
Detect a changed soft reference C++
if (UKismetSystemLibrary::NotEqual_SoftObjectReference(OldRef, NewRef))
{
// Reference changed, reload if necessary
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?