Navigation
API > API/Runtime > API/Runtime/UniversalObjectLocator > API/Runtime/UniversalObjectLocator/FUniversalObjectLocatorFragment > API/Runtime/UniversalObjectLocator/FUniversalObjectLocatorFragment/GetPayloadAs
References
| Module | UniversalObjectLocator |
| Header | /Engine/Source/Runtime/UniversalObjectLocator/Public/UniversalObjectLocatorFragment.h |
| Include | #include "UniversalObjectLocatorFragment.h" |
template<typename T>
const T * GetPayloadAs
(
UE::UniversalObjectLocator::TFragmentTypeHandle < T > InType
) const
Remarks
Try and retrieve this fragment's payload as a specific type using its fragment type handle A mutable pointer to the payload, or nullptr 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. |