TWeakObjectPtr::Get

Dereference the weak pointer

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

T * 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