Navigation
API > API/Runtime > API/Runtime/UniversalObjectLocator > API/Runtime/UniversalObjectLocator/IUniversalObjectLocatorModule
Description
Register a new fragment type that can be used to locate objects from a Universal Object Locator
Fragment types must be serializable USTRUCTS, must be equality comparable, and must be GetTypeHashable. Additionally, the following member functions must be defined:
// Initialize the fragment to point at an object within a context FInitializeResult Initialize(const FInitializeParams& InParams) const; // Resolve the fragment to the resulting object, potentially loading or unloading it FResolveResult Resolve(const FResolveParams& Params) const;
// Convert this fragment to its string representation void ToString(FStringBuilderBase& OutStringBuilder) const; // Try and parse this fragment from its string representation FParseStringResult TryParseString(FStringView InString, const FParseStringParams& Params) const;
// Compute a priority for this fragment based on an object and context in order to decide which fragment type should be used if multiple can address the same object static uint32 ComputePriority(const UObject* Object, const UObject* Context) const;
| Name | RegisterFragmentType |
| Type | function |
| Header File | /Engine/Source/Runtime/UniversalObjectLocator/Public/IUniversalObjectLocatorModule.h |
| Include Path | #include "IUniversalObjectLocatorModule.h" |
template<typename PayloadStructType, std::enable_if_t<< PayloadStructType >::WithIdenticalViaEqualityTStructOpsTypeTraits < PayloadStructType >::WithIdentical) &&TModels_V< CGetTypeHashable , PayloadStructType >), int >>
TFragmentTypeHandle < PayloadStructType > RegisterFragmentType
(
FFragmentTypeParameters & FragmentTypeParameters
)