FWeakObjectPtr::Get

Dereference the weak pointer. This is an optimized version implying bEvenIfPendingKill=false.

Choose your operating system:

Windows

macOS

Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/WeakObjectPtr.h

Include

#include "UObject/WeakObjectPtr.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/WeakObjectPtr.cpp

Syntax

UObject * Get() const

Remarks

Dereference the weak pointer. This is an optimized version implying bEvenIfPendingKill=false.

Returns

nullptr if this object is gone or the weak pointer is explicitly null, otherwise a valid uobject pointer