Navigation
Unreal Engine C++ API Reference > Runtime > Core > UObject > TWeakObjectPtr > TWeakObjectPtr
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/UObject/WeakObjectPtrTemplates.h |
Include | #include "UObject/WeakObjectPtrTemplates.h" |
template<typename OtherT, std::enable_if_t<(std::is_convertible_v< OtherT *, T * >), int >>
TWeakObjectPtr
(
const TWeakObjectPtr < OtherT, TWeakObjectPtrBase > & Other
)
Remarks
Construct from another weak pointer of another type, intended for derived-to-base conversions
Parameters
Name | Description |
---|---|
Other | weak pointer to copy from |