FWeakObjectPtr::Get

Dereference the weak pointer.

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
(
    bool bEvenIfPendingKill
) const

Remarks

Dereference the weak pointer.

Returns

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

Parameters

Parameter

Description

bEvenIfPendingKill

if this is true, pendingkill objects are considered valid

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss