TWeakObjectPtr::HasSameIndexAndSerialNumber

Returns true if two weak pointers were originally set to the same object, even if they are now stale

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/UObject/WeakObjectPtrTemplates.h

Include

#include "UObject/WeakObjectPtrTemplates.h"

Syntax

bool HasSameIndexAndSerialNumber
(
    const TWeakObjectPtr & Other
) const

Remarks

Returns true if two weak pointers were originally set to the same object, even if they are now stale

Parameters

Parameter

Description

Other

weak pointer to compare to