![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <WeakInterfacePtr.h>
Public Types | |
| using | ElementType = T |
| using | UObjectType = TCopyQualifiersFromTo_T< T, UObject > |
An alternative to TWeakObjectPtr that makes it easier to work through an interface.
| using TWeakInterfacePtr< T >::ElementType = T |
| using TWeakInterfacePtr< T >::UObjectType = TCopyQualifiersFromTo_T<T, UObject> |
|
default |
|
default |
|
default |
|
default |
|
inline |
Construct from a null pointer
|
inline |
Construct from an object pointer
| Object | The object to create a weak pointer to. This object must implement interface T. |
|
inline |
Construct from an interface pointer
| Interface | The interface pointer to create a weak pointer to. There must be a UObject behind the interface. |
|
inline |
Construct from a TScriptInterface of the same interface type
| ScriptInterface | The TScriptInterface to copy from. No validation is done here; passing an invalid TScriptInterface in will result in an invalid TWeakInterfacePtr. |
|
inline |
Dereference the weak pointer into an interface pointer.
|
inline |
Dereference the weak pointer into a UObject pointer.
|
inline |
|
inline |
Test if this pointer is stale. Parameters are passed to the underlying TWeakObjectPtr.
|
inline |
Test if this points to a live object. Calls the underlying TWeakObjectPtr's parameterless IsValid method.
|
inline |
Test if this points to a live object. Parameters are passed to the underlying TWeakObjectPtr.
|
inline |
|
inline |
|
inline |
Dereference the weak pointer.
|
inline |
Dereference the weak pointer.
|
inline |
Assign from a script interface.
|
default |
|
inline |
Assign from an interface pointer.
|
default |
|
inline |
|
inline |
|
inline |
Reset the weak pointer back to the null state.
|
inline |