Result of matching text against a regex registry.
Holds the matched pattern and the soft path of the registered entry so no asset has to be loaded to match.
Public Functions
-
inline bool IsValid() const
Returns true when both the pattern and the entry path are set.
-
inline UObject *TryLoadEntry() const
Loads the entry synchronously, or returns nullptr when it cannot be resolved.
-
template<typename T>
inline T *TryLoadEntryAs() const
Loads the entry synchronously and casts it to T, or returns nullptr when it cannot be resolved or cast.
Public Members
-
FString Pattern
Regex pattern that matched the text.
-
FSoftObjectPath Entry
Soft path of the registered entry that owns Pattern.