UKismetSystemLibrary::EqualEqual_PrimaryAssetId
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPureBlueprintThreadSafe
Description
Returns true if two Primary Asset Ids are equal, comparing both the type and name. Backs the "==" node for Primary Asset Id pins in Blueprint.
Caveats & Gotchas
- • In C++ this is equivalent to using operator== on FPrimaryAssetId directly; the Blueprint node exists because Blueprint has no generic struct equality operator.
Signature
static bool EqualEqual_PrimaryAssetId(FPrimaryAssetId A, FPrimaryAssetId B) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | FPrimaryAssetId | The first Primary Asset Id to compare. | — |
| B | FPrimaryAssetId | The second Primary Asset Id to compare. | — |
Return Type
bool Example
Compare two Ids C++
if (UKismetSystemLibrary::EqualEqual_PrimaryAssetId(AssetIdA, AssetIdB))
{
UE_LOG(LogTemp, Log, TEXT("Same asset"));
} Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?