Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TWeakObjectPtr
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool HasSameIndexAndSerialNumber
(
const TWeakObjectPtr& Other |
Returns true if two weak pointers were originally set to the same object, even if they are now stale | UObject/WeakObjectPtrTemplates.h | |
bool HasSameIndexAndSerialNumber
(
const TWeakObjectPtr< OtherT, TWeakObjectPtrBase >& Other |
Returns true if two weak pointers were originally set to the same object, even if they are now stale | UObject/WeakObjectPtrTemplates.h |
HasSameIndexAndSerialNumber(const TWeakObjectPtr &)
Description
Returns true if two weak pointers were originally set to the same object, even if they are now stale
| Name | HasSameIndexAndSerialNumber |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/UObject/WeakObjectPtrTemplates.h |
| Include Path | #include "UObject/WeakObjectPtrTemplates.h" |
bool HasSameIndexAndSerialNumber
(
const TWeakObjectPtr & Other
) const
Parameters
| Name | Remarks |
|---|---|
| Other | weak pointer to compare to |
HasSameIndexAndSerialNumber(const TWeakObjectPtr< OtherT, TWeakObjectPtrBase > &)
Description
Returns true if two weak pointers were originally set to the same object, even if they are now stale
| Name | HasSameIndexAndSerialNumber |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/UObject/WeakObjectPtrTemplates.h |
| Include Path | #include "UObject/WeakObjectPtrTemplates.h" |
template<typename OtherT, std::enable_if_t<((!std::is_same_v< decltype((T *) nullptr==(OtherT *) nullptr), long long ************ >)), int >>
bool HasSameIndexAndSerialNumber
(
const TWeakObjectPtr < OtherT, TWeakObjectPtrBase > & Other
) const
Parameters
| Name | Remarks |
|---|---|
| Other | weak pointer to compare to |