Navigation
API > API/Runtime > API/Runtime/UniversalObjectLocator > API/Runtime/UniversalObjectLocator/FUniversalObjectLocatorFragment > API/Runtime/UniversalObjectLocator/FUniversalObjectLocatorFragment/TryGetPayloadAs
References
| Module | UniversalObjectLocator |
| Header | /Engine/Source/Runtime/UniversalObjectLocator/Public/UniversalObjectLocatorFragment.h |
| Include | #include "UniversalObjectLocatorFragment.h" |
template<typename T>
bool TryGetPayloadAs
(
UE::UniversalObjectLocator::TFragmentTypeHandle < T > InType,
T *& OutData
)
Remarks
Try and retrieve this fragment's payload as a specific type using its fragment type handle true on success, false if this fragment is empty or of a different type.
Parameters
| Name | Description |
|---|---|
| InType | The handle of the fragment type to this payload to. This is returned from IUniversalObjectLocatorModule::RegisterFragmentType on registration. |
| OutData | Pointer to retrieve the resulting payload ptr |