UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
WeakObjectPtr.h File Reference

Go to the source code of this file.

Classes

struct  FWeakObjectPtr
 

Namespaces

namespace  UE
 
namespace  UE::Core
 
namespace  UE::Core::Private
 implementation
 

Macros

#define UE_WEAKOBJECTPTR_ZEROINIT_FIX   1
 

Functions

UE_FORCEINLINE_HINT uint32 GetTypeHash (const FWeakObjectPtr &WeakObjectPtr)
 

Variables

constexpr int32 UE::Core::Private::InvalidWeakObjectIndex = 0
 

Macro Definition Documentation

◆ UE_WEAKOBJECTPTR_ZEROINIT_FIX

#define UE_WEAKOBJECTPTR_ZEROINIT_FIX   1

Invalid FWeakObjectPtr ObjectIndex values must be 0 to support zeroed initialization (this used to be INDEX_NONE, leading to subtle bugs).

Function Documentation

◆ GetTypeHash()

UE_FORCEINLINE_HINT uint32 GetTypeHash ( const FWeakObjectPtr WeakObjectPtr)

Hash function.