Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TSharedFromThis
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Provides a weak reference to this object. | Templates/SharedPointer.h | ||
| Templates/SharedPointer.h |
AsWeak()
Description
Provides a weak reference to this object. Note that is only valid to call this after a shared reference (or shared pointer) to the object has already been created. Also note that it is illegal to call this in the object's destructor.
| Name | AsWeak |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
| Include Path | #include "Templates/SharedPointer.h" |
TWeakPtr < ObjectType, Mode > AsWeak()
Returns this object as a weak pointer
AsWeak()
| Name | AsWeak |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
| Include Path | #include "Templates/SharedPointer.h" |
TWeakPtr < ObjectType const, Mode > AsWeak() const